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

Utilizing subaccounts / credentials #95

Closed
sb8244 opened this issue May 8, 2018 · 2 comments
Closed

Utilizing subaccounts / credentials #95

sb8244 opened this issue May 8, 2018 · 2 comments

Comments

@sb8244
Copy link

sb8244 commented May 8, 2018

I was looking over this library out of curiosity (not yet using on a project). I use Twilio Ruby heavily and was comparing against this. One thing that I noticed is that it might not be possible to specify the account sid / token that an API request will be made against.

Is it possible to specify the sid / token that an API request will make?

If it's not, is this something you'd consider accepting a PR for? I was looking at how I might go about it and do not see an obvious path forward currently which is why I ask.

@astjohn
Copy link

astjohn commented Aug 22, 2018

Try this:

ExTwilio.Message.create(%{to: "199999999", from: "16666666666", body: "hello world"}, [account: "XXX", token: "YYY"])

@sb8244
Copy link
Author

sb8244 commented Aug 24, 2018

Thanks, I think you're right!

@sb8244 sb8244 closed this as completed Aug 24, 2018
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