-
Notifications
You must be signed in to change notification settings - Fork 69
feat: added additional WABA and WA ES Flow Endpoints #160
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
base: main
Are you sure you want to change the base?
Conversation
superchilled
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mostly looks good, just a few things to check/fix.
| -H 'Content-Type: application/json' \ | ||
| -H 'Accept: application/json' \ | ||
| -d $'{ | ||
| "solution_id": "123456789111213", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not be a variable?
| -H 'Accept: application/json' \ | ||
| -d $'{ | ||
| "solution_id": "123456789111213", | ||
| "api_key": "'${CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY}'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
| "api_key": "'${CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY}'", | |
| "api_key": "'${CHANNEL_MANAGER_WHATSAPP_PARTNER_API_KEY}'", |
|
|
||
| source "../../config.sh" | ||
|
|
||
| curl -X PATCH https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/${CHANNEL_MANAGER_WABA_ID}/numbers/${CHANNEL_MANAGER_WABA_NUMBER}/profile \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the correct path? According to the spec it should be:
| curl -X PATCH https://api.nexmo.com/v1/channel-manager/whatsapp/wabas/${CHANNEL_MANAGER_WABA_ID}/numbers/${CHANNEL_MANAGER_WABA_NUMBER}/profile \ | |
| curl -X PATCH https://api.nexmo.com/v1/channel-manager/whatsapp/numbers/${CHANNEL_MANAGER_WABA_NUMBER}/profile \ |
unless the spec is wrong? 🤔
| CHANNEL_MANAGER_WHATSAPP_ANALYTICS_TEMPLATE_IDS=${CHANNEL_MANAGER_WHATSAPP_ANALYTICS_TEMPLATE_IDS:-"[]"} | ||
|
|
||
| ## WhatsApp Hosted ES FLow | ||
| CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY=${CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY:-""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
| CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY=${CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY:-""} | |
| CHANNEL_MANAGER_WHATSAPP_PARTNER_API_KEY=${CHANNEL_MANAGER_WHATSAPP_PARTNER_API_KEY:-""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like CHANNEL_MANAGER_WABA_NUMBER is missing from config.sh
This adds the last remaining snippets for WA and Hosted ES Flow endpoints