Whatsapp Workflow with dummy HTTP actions#6
Open
krishan1390 wants to merge 2 commits intoprojectstepone:masterfrom
Open
Whatsapp Workflow with dummy HTTP actions#6krishan1390 wants to merge 2 commits intoprojectstepone:masterfrom
krishan1390 wants to merge 2 commits intoprojectstepone:masterfrom
Conversation
krishan1390
commented
Apr 30, 2021
| int idleTimeOutSeconds = configuration.getIdleTimeOutSeconds(); | ||
| idleTimeOutSeconds = idleTimeOutSeconds == 0 ? 30 : idleTimeOutSeconds; | ||
| try { | ||
| // Create a trust manager that does not validate certificate chains |
Author
There was a problem hiding this comment.
This is just to make the API calls from local. Will not be merging, but just posting here for reference
krishan1390
commented
Apr 30, 2021
| "type": "EVALUATED", | ||
| "fromState": "SMS_SENT", | ||
| "active": true, | ||
| "rule": "path.exists(\"$.update.source\") == true && \"$.update.source\" == \"whatsapp\"", |
Author
There was a problem hiding this comment.
this condition would change based on integration from ingress
krishan1390
commented
Apr 30, 2021
| "method": "POST", | ||
| "url": "https://api.kaleyra.io/v1/SSID/messages", | ||
| "payload": "{\"to\":\"+91TO_PHONE\",\"body\":\"Welcome to COVID National Helpline. \\n \\nPlease answer the questions appropriately to receive assistance\",\"sender\":\"+91FROM_PHONE\",\"channel\":\"WhatsApp\",\"from\":\"+91FROM_PHONE\",\"type\":\"text\"}", | ||
| "headers": "api-key:APIKEY" |
Author
There was a problem hiding this comment.
replace SSID, TO_PHONE, APIKEY, FROM_PHONE with right variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
High level flow - https://drive.google.com/file/d/1eC7z8oxU0sdaAIzC6c9DojlHUUjVUWLM/view?usp=sharing
Spec - https://docs.google.com/document/d/1OkmbfawNuIs3CN0ppus3v0Z5gRbj2Y181W3CWjXC9h4/edit#