Skip to content

Conversation

int idleTimeOutSeconds = configuration.getIdleTimeOutSeconds();
idleTimeOutSeconds = idleTimeOutSeconds == 0 ? 30 : idleTimeOutSeconds;
try {
// Create a trust manager that does not validate certificate chains
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just to make the API calls from local. Will not be merging, but just posting here for reference

"type": "EVALUATED",
"fromState": "SMS_SENT",
"active": true,
"rule": "path.exists(\"$.update.source\") == true && \"$.update.source\" == \"whatsapp\"",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this condition would change based on integration from ingress

"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"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace SSID, TO_PHONE, APIKEY, FROM_PHONE with right variables.

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

Successfully merging this pull request may close these issues.

2 participants