We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6975c27 commit 24d75f0Copy full SHA for 24d75f0
1 file changed
README.md
@@ -18,15 +18,19 @@ A single Pythonic wrapper class representing the Cisco Spark API interfaces and
18
### Examples
19
20
```python
21
+import os
22
from ciscosparkapi import CiscoSparkAPI
23
-access_token = "abcdefg..."
24
-api = CiscoSparkAPI(access_token)
+
25
+access_token = os.environ['SPARK_ACCESS_TOKEN']
26
+api = CiscoSparkAPI(access_token, timeout=60)
27
28
29
rooms = api.rooms.list() # Returns an generator container providing support for RFC5988 paging
30
for room in rooms: # Efficiently iterates through returned objects
31
print room.title # JSON objects are represented as native Python objects
32
33
34
# Creating a list from the returned generator containers is easy
35
team_list = list(api.teams.list())
36
print team_list
0 commit comments