Skip to content

Commit

Permalink
delays api call example to avoid 429 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabiGrin authored Mar 10, 2024
1 parent 1a9172c commit 368f480
Showing 1 changed file with 42 additions and 18 deletions.
60 changes: 42 additions & 18 deletions templates/combine-apis/Example.flyde
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ imports:
- Loop List
- Collect
- GetAttribute
- Delay
node:
instances:
- pos:
x: -86.86109741210936
y: -332.4004211425781
x: -79.56928833007811
y: -378.2348937988281
id: lppjv85ixcde390hug6eonj5
inputConfig: {}
nodeId: InlineValue__lppjv85ixcde390hug6eonj5
Expand Down Expand Up @@ -49,8 +50,8 @@ node:
node:
instances:
- pos:
x: -39.622965087890634
y: -144.00405883789062
x: -167.95926879882813
y: 110.51577758789062
id: pyiyhtxsh3b5b7qhuuncqv9u
inputConfig: {}
nodeId: CodeExpression__pyiyhtxsh3b5b7qhuuncqv9u
Expand All @@ -59,8 +60,8 @@ node:
value: "`https://random-data-api.com/api/v2/users?size=${inputs.count}`"
label: "`https://random-data-api.com/api/v2/users?size=${inputs.count}`"
- pos:
x: 90
y: -45
x: -30.668975830078125
y: 217.72706604003906
id: rxuwi8y3zmoabq64tqybypf9
inputConfig: {}
nodeId: Http__rxuwi8y3zmoabq64tqybypf9
Expand Down Expand Up @@ -108,8 +109,8 @@ node:
delayed: false
inputsPosition:
count:
x: 0
y: 0
x: 1.636474609375
y: 58.00761413574219
outputsPosition:
data:
x: 0
Expand Down Expand Up @@ -181,6 +182,12 @@ node:
to:
insId: __this
pinId: data
- from:
insId: __this
pinId: count
to:
insId: __this
pinId: data
id: Fetch Random Beers
inputs:
count:
Expand All @@ -190,12 +197,12 @@ node:
delayed: false
inputsPosition:
count:
x: 0
y: 0
x: -302.44451904296875
y: -194.33108520507812
outputsPosition:
data:
x: 0
y: 400
x: -339.8651123046875
y: 94.16617584228516
completionOutputs:
- data
defaultStyle:
Expand Down Expand Up @@ -239,19 +246,24 @@ node:
key:
value: name
mode: static
- pos:
x: -4.982785644531248
y: -251.58292610190102
id: xz75asn2p81hgkqr78fcirxz
inputConfig: {}
nodeId: Delay__xz75asn2p81hgkqr78fcirxz
macroId: Delay
macroData:
delayMs:
value: 2000
mode: static
connections:
- from:
insId: lppjv85ixcde390hug6eonj5
pinId: value
to:
insId: Fetch Random Beers-6l1491s
pinId: count
- from:
insId: lppjv85ixcde390hug6eonj5
pinId: value
to:
insId: Fetch Random Users-8i0496g
pinId: count
- from:
insId: Fetch Random Users-8i0496g
pinId: data
Expand Down Expand Up @@ -300,6 +312,18 @@ node:
to:
insId: zfhcgwxnesaxpux6bgjwnan2
pinId: user
- from:
insId: lppjv85ixcde390hug6eonj5
pinId: value
to:
insId: xz75asn2p81hgkqr78fcirxz
pinId: value
- from:
insId: xz75asn2p81hgkqr78fcirxz
pinId: delayedValue
to:
insId: Fetch Random Users-8i0496g
pinId: count
id: Example
inputs: {}
outputs:
Expand Down

0 comments on commit 368f480

Please sign in to comment.