Skip to content

Commit 65829cb

Browse files
committed
Update docs due to renaming of queries and renaming of content.
1 parent a97e80a commit 65829cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ API abstraction layer.
5555

5656
## Example
5757
```python
58-
devices = exp.api.get_devices(**params) # Query for device objects (url params).
58+
devices = exp.api.find_devices(**params) # Query for device objects (url params).
5959
device = exp.api.get_device(uuid) # Get device by UUID.
6060
device = exp.api.create_device(document) # Create a device from a dictionary
6161
```
62-
Other available namespaces: experiences, zones, locations, content_node. Content nodes do not currently support queries or creation, only "get_content_node(uuid)".
62+
Other available namespaces: experiences, locations, content, data. Content nodes do not currently support queries or creation, only "get_content(uuid)".
6363

6464
## API Resources
6565
Each resource object contains a "document" field which is a dictionary representation of the raw resource, along with "save" and "delete" methods.
@@ -71,7 +71,7 @@ print device.document["field"]
7171
device.delete()
7272
```
7373

74-
The "content_node" resource has a ```get_children()``` method that returns the content node's children (a list of content node objects). Every content node object also has a ```get_url()``` method that returns a delivery url for the content.
74+
The "content" resource has a ```get_children()``` method that returns the content node's children (a list of content objects). Every content node object also has a ```get_url()``` method that returns a delivery url for the content.
7575

7676
# exp.channels
7777
Parent namespace for interaction with the event bus. Available channels are:

0 commit comments

Comments
 (0)