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 multiple accounts #126

Closed
pinksynth opened this issue Oct 24, 2019 · 2 comments
Closed

Support for multiple accounts #126

pinksynth opened this issue Oct 24, 2019 · 2 comments

Comments

@pinksynth
Copy link

Hello, is there any existing support (or plan to support) having multiple accounts for one application? I am building an app which uses two separate sets of credentials for Programmable SMS—some features are in a staging environment and should be using our Test SID / Test Auth Token.

Thanks for all your work on this package, it has made integrating with Twilio a breeze!

@pinksynth pinksynth changed the title Support for multiple account SIDs and multiple auth tokens? Support for multiple accounts Oct 24, 2019
@atonse
Copy link

atonse commented May 20, 2020

I came here in search for this and after looking at the code, it looks like you can just pass in a custom account: and token: into your API call and it'll pick that up.

For example: ExTwilio.Message.create(account: account_sid, token: token)

This has worked well for us, since we have a multi-tenant system and each customer can have a separate twilio account.

@danielberkompas
Copy link
Owner

@atonse has the correct solution for now. In the future, we could revisit 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

3 participants