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

Support for template parameters #15

Open
alecha opened this issue Aug 8, 2017 · 6 comments
Open

Support for template parameters #15

alecha opened this issue Aug 8, 2017 · 6 comments

Comments

@alecha
Copy link

alecha commented Aug 8, 2017

This issue is to discuss how we can implement the support for template parameters

https://support.twilio.com/hc/en-us/articles/230878368-How-to-use-templates-with-TwiML-Bins

@kevinburke
Copy link
Owner

One thing I would suggest researching is how the official client libraries support (or fail to support) this. I imagine the @twilio pm in charge would be interested as well... @pmala5 @chriscorcoran @dougblack

@kevinburke
Copy link
Owner

(basic problem is - if I am making a call or SMS using the client libraries, what's the easiest way to pass through extra data/state to a twiml bin template)

@alecha
Copy link
Author

alecha commented Aug 9, 2017

Thanks @kevinburke. Trying to make a demo, even passing the parameter key and value as query string doesn't seem to work, but maybe I'm making something wrong (the hack was to manually change the source code and append the encoded data at the end of the request's url as explained in Twilio's support article

@kevinburke
Copy link
Owner

kevinburke commented Aug 10, 2017 via email

@alecha
Copy link
Author

alecha commented Aug 11, 2017

Yes I've already checked, the url is

POST /2010-04-01/Accounts/{MyAccount}/Calls.json?Name=Alessio

and the template is

<Response>
<Say voice="alice">Hi {{Name}}, this is the call</Say>
</Response>

@alecha
Copy link
Author

alecha commented Sep 6, 2017

Hi, any news on this?

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

No branches or pull requests

2 participants