Update example
This commit is contained in:
parent
d3046c7ede
commit
07a8a2d804
|
@ -47,7 +47,7 @@ Pod objects have `subpods` (a Subpod is a specific response with the plaintext r
|
||||||
|
|
||||||
You may also query for simply the pods which have 'Result' titles or are marked as 'primary'::
|
You may also query for simply the pods which have 'Result' titles or are marked as 'primary'::
|
||||||
|
|
||||||
print(res.results[0])
|
print(res.results[0].text[0])
|
||||||
|
|
||||||
The interface as it is now does not have code built for accessing every piece of information that the Wolfram Alpha API could return. As such, every class has a copy of the original structure that it is supposed to parse. This copy is placed in a variable called node for every class but the Result class, whose variable is named tree. If there is information from the Wolfram Alpha API that you need for your program that this interface does not provide an exact function for then you can still gain access to that information through the previously mentioned variables; you'll just have to handle the API directly until the functionality you seek is built.
|
The interface as it is now does not have code built for accessing every piece of information that the Wolfram Alpha API could return. As such, every class has a copy of the original structure that it is supposed to parse. This copy is placed in a variable called node for every class but the Result class, whose variable is named tree. If there is information from the Wolfram Alpha API that you need for your program that this interface does not provide an exact function for then you can still gain access to that information through the previously mentioned variables; you'll just have to handle the API directly until the functionality you seek is built.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user