You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make an API call (get): call .get_api_request(endpoint, endpoint_list_version), making the endpoint being a list of the API version, the call URL, and the params if applicable. It will return a dictionary with the response.
67
-
You are able to parse through the access_token, otherwise it will default to the current access token in the constructor.
101
+
# Groups
102
+
groups =await sharesight.list_groups()
103
+
```
104
+
105
+
# **Raw API Requests** #
106
+
107
+
To make an API call (get): call .get_api_request(endpoint), making the endpoint being a list of the API version, the call URL, and the params if applicable. It will return a dictionary with the response.
108
+
You are able to parse through the access_token, otherwise it will default to the current access token in the constructor.
max_retries=3, # Maximum retry attempts (default: 3)
147
+
retry_backoff=1.0# Base backoff time in seconds (default: 1.0)
148
+
)
149
+
```
150
+
151
+
For 429 responses, the `Retry-After` header is respected when present.
84
152
85
153
# **Manual Token Handling** #
86
154
87
155
This is an alternative to saving the token in the current directory, this allows you to handle all the token functions.
88
156
89
-
To store your own token data elsewhere, call `return_token()` to gets the currently saved token information, which can be called after the token is validated (see pytest for more details)
157
+
To store your own token data elsewhere, call `return_token()` to gets the currently saved token information, which can be called after the token is validated (see example.py for more details)
90
158
91
159
(This removes the need for save_token and load_token methods, as you'll be handling it, but the token will still be refreshed)
0 commit comments