Skip to content

Conversation

@manchuck
Copy link
Contributor

@manchuck manchuck commented Dec 2, 2025

This adds the last remaining snippets for WA and Hosted ES Flow endpoints

@manchuck manchuck requested a review from superchilled December 2, 2025 16:54
@manchuck manchuck marked this pull request as draft December 2, 2025 16:55
@manchuck manchuck marked this pull request as ready for review December 2, 2025 17:00
Copy link
Contributor

@superchilled superchilled left a 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",
Copy link
Contributor

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}'",
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

Suggested change
"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 \
Copy link
Contributor

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:

Suggested change
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:-""}
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

Suggested change
CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY=${CHANNEL_MANAGER_WAHTSAPP_PARTNER_API_KEY:-""}
CHANNEL_MANAGER_WHATSAPP_PARTNER_API_KEY=${CHANNEL_MANAGER_WHATSAPP_PARTNER_API_KEY:-""}

Copy link
Contributor

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

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.

3 participants