Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call api > 2x #148

Open
irpankusuma opened this issue May 29, 2020 · 0 comments
Open

call api > 2x #148

irpankusuma opened this issue May 29, 2020 · 0 comments

Comments

@irpankusuma
Copy link

gimana caranya call api dalam 1 state lebih dri 1x dan result dri api sebanyak (n)x di push dalem 1 variable misal context.
dan result dalem context itu di display sekali aja

saya cobain 1x berhasil
callAPI: enter: createParamAPI action: - name: removeTimeOut - name: getDataAPI - name: command options: command: finishAPI payload: result: $(result) transitions: showResult: conditon: intent == 'intentAPI' && payload.result mapping: context.rateLists: payload.result.forExRateList context.status: payload.result.statusCode handlingErrorAPI: fallback: true

tapi klo action getDataAPI sya tambah dan commandnya jga, trus saya masukan ke context. result Call api yg pertama di context ga kesimpen
context itu cuma available buat 1x state run ya? klo state looping context reset ya?

ada contoh ga,
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant