File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,19 @@ A single Pythonic wrapper class representing the Cisco Spark API interfaces and
18
18
### Examples
19
19
20
20
``` python
21
+ import os
21
22
from ciscosparkapi import CiscoSparkAPI
22
23
23
- access_token = " abcdefg..."
24
- api = CiscoSparkAPI(access_token)
24
+
25
+ access_token = os.environ[' SPARK_ACCESS_TOKEN' ]
26
+ api = CiscoSparkAPI(access_token, timeout = 60 )
27
+
25
28
26
29
rooms = api.rooms.list() # Returns an generator container providing support for RFC5988 paging
27
30
for room in rooms: # Efficiently iterates through returned objects
28
31
print room.title # JSON objects are represented as native Python objects
29
32
33
+
30
34
# Creating a list from the returned generator containers is easy
31
35
team_list = list (api.teams.list())
32
36
print team_list
You can’t perform that action at this time.
0 commit comments