Skip to content

Add send_whatsapp transactional method#135

Open
hownowstephen wants to merge 1 commit into
mainfrom
transactional-whatsapp
Open

Add send_whatsapp transactional method#135
hownowstephen wants to merge 1 commit into
mainfrom
transactional-whatsapp

Conversation

@hownowstephen

Copy link
Copy Markdown
Contributor

Summary

The backend serves POST /v1/send/whatsapp, but the SDK didn't expose it. Adds a send_whatsapp method mirroring the existing send_sms surface.

Changes

  • SendWhatsAppRequest in customerio/api.py — mirrors SendSMSRequest, plus the from and tracked fields the handler reads (to/from are E.164, optional when the transactional_message_id already defines them). from is exposed as the _from argument since from is a reserved keyword.
  • APIClient.send_whatsapp(request)POST /v1/send/whatsapp.
  • Exported SendWhatsAppRequest from customerio/__init__.py.
  • Unit test in tests/test_api.py.
  • README "WhatsApp" section.

Adds a send_whatsapp method for POST /v1/send/whatsapp, mirroring the
existing send_sms surface plus the from/to and tracked fields the
endpoint reads.
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.

1 participant