Skip to content

v2.0.0

Latest

Choose a tag to compare

@ignacio-chiazzo ignacio-chiazzo released this 23 Nov 21:44
· 14 commits to main since this release

⚠️ Breaking changes

  • Breaking: Raise HttpResponseError for every HTTP response with status >= 400 in the default parsed mode (previously only >= 500 or bodies with a Graph error key). Use raw_response: true to inspect 4xx bodies yourself. @oitedi 209
  • Breaking: Send marketing templates through the Marketing Messages API via messages.send_marketing_template, and expose message_status on message responses. send_template now raises on a blank language and when both components and components_json are given @oitedi 207

All changes

  • Add support for v26.0 and v27.0 API. @dominikklein 213
  • Accept an after cursor in templates.list to read past the first page of message templates. @afonso-aguas 211
  • Breaking: Raise HttpResponseError for every HTTP response with status >= 400 in the default parsed mode (previously only >= 500 or bodies with a Graph error key). Use raw_response: true to inspect 4xx bodies yourself. @oitedi 209
  • Add explicit WhatsApp phone onboarding operations: phone_numbers.add, request_code, verify_code, set_public_key/get_public_key, and business_accounts.subscribe_app @oitedi 208
  • Breaking: Send marketing templates through the Marketing Messages API via messages.send_marketing_template, and expose message_status on message responses. send_template now raises on a blank language and when both components and components_json are given @oitedi 207
  • Add explicit WhatsApp Flow management operations through client.flows (list, get, create, upload_json, publish, assets) @oitedi 206
  • Configure and reuse the HTTP transport per client: connection reuse per origin, configurable adapter, request_options, multipart_request_options, and middleware, plus Client#close @oitedi 205
  • Allow callers to inspect the complete HTTP response with raw_response: true @oitedi 203
  • Stream upload session files and close them after requests @guizaols 202
  • Document public SDK contracts with YARD @guizaols 201

RubyGems: https://rubygems.org/gems/whatsapp_sdk/versions/2.0.0