Skip to content

Commit f07a559

Browse files
committed
Update docs to include note on new Rate Limiting support
1 parent 21c9616 commit f07a559

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/user/intro.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ With ciscosparkapi, the above Python code can be consolidated to the following:
8383
from Spark, requests for additional pages of responses are efficiently and
8484
automatically requested as needed
8585

86+
+ **Automatic Rate-Limit Handling** Sending a lot of requests to Cisco Spark?
87+
Don't worry; we have you covered. Spark will respond with a rate-limit
88+
response, which will automatically be caught and "handled" for you. Your
89+
requests and script will automatically be "paused" for the amount of time
90+
specified by Spark, while we wait for the Spark rate-limit timer to cool
91+
down. After the cool-down, your request will automatically be retried, and
92+
your script will continue to run as normal. Handling all of this requires
93+
zero (0) changes to your code - you're welcome. 😎
94+
95+
Just know that if you are are sending a lot of requests, your script might
96+
take longer to run if your requests are getting rate limited.
97+
8698
+ Multipart encoding and uploading of local files, when creating messages with
8799
local file attachments
88100

0 commit comments

Comments
 (0)