I want to fire off a messaging API with payload after a successful dialogflow interaction. My JS is weak and need some assistance. For example, I want to send an SMS after a successful dialog flow interaction using this API end point:
https://developer.wavecell.com/v1/api-documentation/send-sms-single:
https://api.wavecell.com/sms/v1/{subAccountId}/single HTTP POST:
{ "source": "Developer", "destination": "+6512345678", "clientMessageId": "MyBd00001", "text": "Hello World", "encoding": "AUTO", "scheduled": "2016-11-03T08:24:20.332Z", "expiry": "2016-11-03T18:24:20.332Z" }
How would I write that in Inline Editor(Powered by Cloud Functions for Firebase)? I don't need a anything fancy ... just to call this API with its payload.
Thanks. An example code would suffice.