Hi!
I'm building an app that will be deployed for any Zendesk account, so I will need a Global oAuth Client.
But, when the user authorizes the installation, how do I get the account subdomain to make API calls?
I know that https://{subdomain}.zendesk.com/api/v2/brands give all info, but it requires a subdomain too...
Thanks.
You're going to want to use the context method offered from the Apps Framework. This will provide you the subdomain of the instance your app has been installed in along with other useful information.
Hope this helps,