Skip to content
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

Add fetch templates for Twilio WhatsApp and transform the Twilio cont… #5148

Closed
wants to merge 2 commits into from

Conversation

norkans7
Copy link

@norkans7 norkans7 commented Apr 3, 2024

…ent to WA style templates

I need to first figure out how the contentVariables will be handled to be passed to the Twilio API on courier and how to pass the SID of the template instead of the name

contains and requires #5158

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f88e796) to head (44b6dfa).

❗ Current head 44b6dfa differs from pull request most recent head ef24d16. Consider uploading reports for the commit ef24d16 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #5148   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          462       460    -2     
  Lines        24931     24985   +54     
=========================================
+ Hits         24931     24985   +54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@norkans7 norkans7 force-pushed the twilio-content-templates branch 3 times, most recently from 1cb105e to 44b6dfa Compare April 5, 2024 13:14
@norkans7 norkans7 marked this pull request as ready for review April 5, 2024 13:35
components.append({"type": "body", "text": temp["types"][content_type]["body"]})
if "media" in temp["types"][content_type]:
if extract_params(temp["types"][content_type]["media"][0]):
components.append({"type": "header", "format": "unknown"})
Copy link
Author

Choose a reason for hiding this comment

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

we use format unknown, since we cannot figure out the exact attachment type

Copy link
Author

Choose a reason for hiding this comment

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

And we do not support attachments yet

@norkans7
Copy link
Author

Replaced by #5183

@norkans7 norkans7 closed this Apr 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants