API Documentation

/getSocialAuthUrl
API operation used to get the redirect_uri to initiate an authentication through a social network like Facebook or Twitter.
Production:
Test:
https://tippingcircle.com/rest/v1/getSocialAuthUrl
http://test.tippingcircle.com/rest/v1/getSocialAuthUrl

Request
  Param Description
* consumer_key Consumer key for the application.
* social_network Valid options include: "facebook", "twitter".
* redirect_uri The return url where you want the social network to redirect the user back to your application.
GET
/getSocialAuthUrl?consumer_key={consumer_key}
&social_network={social_network}&redirect_uri={redirect_uri}

Header
Content-Type: 'application/json'


Example
{
"consumer_key": "E4ZcTipHc3CozLB3jknSTK2et",
"social_network": "facebook"
"redirect_uri": "http://domain/index.html?. . ."
}

Response
The success response includes the authUrl used to redirect the user to the social network's application for authentication.
{
"success": true,
"message": "String content",
"errorCode": 0,
"authUrl": "https://www.facebook.com/dialog/oauth?. . ."
}