File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ Has classes and methods for:
9
9
10
10
# Usage
11
11
Firstly you need to make up an instance of the TokenManager Class.\
12
- This Class will be used to pass the retreived Token to other methods later
13
- ~~~
12
+ This Class will be used to pass the retrieved Token to other methods later
13
+ ~~~ python
14
14
ttm_token = TelstraTrackMonitorAPI.TokenManager(
15
15
server = ' https://tapi.telstra.com'
16
16
client_id = ' XXXXXXXXXXXXXXXXXXXXX'
@@ -21,7 +21,7 @@ ttm_token.load_token() #Loads any token information in the save_location json fi
21
21
ttm_token.update_token() # Check if the token is expired and renews if so.
22
22
~~~
23
23
Once the above is done we can actually pull some information from Track & Monitor API
24
- ~~~
24
+ ~~~ python
25
25
with TelstraTrackMonitorAPI.Sessions(ttm_token.server,ttm_token.access_token) as TTM :
26
26
ttm_devices= TTM .devices_get(
27
27
{' $filter' :' not(deviceFriendlyName eq null)' }
@@ -31,6 +31,5 @@ The above method will get all devices in Track & Monitor API that have a Device
31
31
32
32
33
33
# Installation
34
- ~~~
35
- pip install TelstraTrackMonitorAPI
36
- ~~~
34
+
35
+ ` pip install TelstraTrackMonitorAPI `
You can’t perform that action at this time.
0 commit comments