Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Retrieve the App Sid Automatically #232

Open
caseysoftware opened this issue Jan 29, 2013 · 3 comments
Open

Retrieve the App Sid Automatically #232

caseysoftware opened this issue Jan 29, 2013 · 3 comments

Comments

@caseysoftware
Copy link
Contributor

While issue #231 solves the problem of a mis-configured Twilio Client being displayed, if we can automatically retrieve the install's App Sid, we can bypass it completely.

For context, this is set on this page:
[install]/settings/site#twilio-account
and retrieved from the user dashboard here:
https://www.twilio.com/user/account/apps

@walker
Copy link
Contributor

walker commented Jan 29, 2013

Looks like this is what you'd want specifically: https://www.twilio.com/user/account/developer-tools/api-explorer#GET/2010-04-01/Accounts/[AccountSid]/Applications.[format]

How would this work, though?

  1. What happens if there's already apps but none of them have a Voice or Text URL that matches where OpenVBX is running?
  2. What happens if there's more than one that matches as above?
  3. What if there are no applications configured? Should OpenVBX attempt to create one via the API?

@caseysoftware
Copy link
Contributor Author

Valid and great questions.

OpenVBX is supposed to create its own AppSid, so there should already be one, we just have to find and confirm it. If there isn't a match it's because creation failed or someone changed it.

In either case, we can try again, if it works, all is well. If it fails, then we need to surface that to the UI in a useful way.

@Gipetto
Copy link
Contributor

Gipetto commented Jan 29, 2013

You'll possibly run in to an issue if someone moves their install or misconfigures www vs. non-www - its hard to hook back up with the right app. Our thinking at the time was that applications are cheap, make a new one if we have to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants