Get a Token from a Social Network

Get a token from a social network.

This method is used for OAuth 1.0a protocols (Used by Twitter for now). Use GET request to obtain token:

https://api.appery.io/rest/1/db/oauth/token

Returns an object with a single token field containing OAuth 1.0a request token where:

ParameterDescription
provider_idOne of the supported OAuth 1.0a providers: twitter
app_idProvider’s application id (client id, consumer key, etc.)
callback_urlURL to which the redirect will be sent after token creation.
#Example
curl -X GET \
   -H "X-Appery-Database-Id: <database_id>" \
   https://api.appery.io/rest/1/db/oauth/token?provider=<provider_id>[&appId=<app_id>][&callback=<callback_url>]