We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e790f commit bb669f0Copy full SHA for bb669f0
Integration/RESTMessageV2/GET with backoff, telemetry, and simple pagination/example_background_usage.js
@@ -0,0 +1,11 @@
1
+// Background Script usage example for RestGetWithBackoff
2
+(function() {
3
+ var helper = new RestGetWithBackoff();
4
+ var data = helper.getAll({
5
+ endpoint: 'https://api.example.com/v1/things?limit=100',
6
+ headers: { 'Authorization': 'Bearer ${token}' },
7
+ maxRetries: 4,
8
+ baseDelayMs: 750
9
+ });
10
+ gs.info('Fetched ' + data.length + ' items total');
11
+})();
0 commit comments