POST api/v1/account/SocialLogin
Login to the app using social login This is going to result in two successful options. These can be determined by the json loggedIn property 1. The user is registered and will be logged in and provided with a valid access token to use for authentication 2. The user is not registered. They will be returned a temp access code that will allow them to register.
Request Information
URI Parameters
None.
Body Parameters
SocialExternalToken| Name | Description | Type | Additional information |
|---|---|---|---|
| Provider |
Provider = Facebook or Twitter |
string |
Required |
| Token | string |
Required |
|
| TwitterTokenSecret | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"provider": "sample string 1",
"token": "sample string 2",
"twitterTokenSecret": "sample string 3"
}
text/html, text/plain
Sample:
{"provider":"sample string 1","token":"sample string 2","twitterTokenSecret":"sample string 3"}
application/xml, text/xml
Sample:
<SocialExternalToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Last2Left.WebApi.Models"> <Provider>sample string 1</Provider> <Token>sample string 2</Token> <TwitterTokenSecret>sample string 3</TwitterTokenSecret> </SocialExternalToken>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, text/plain, application/xml, text/xml
Sample:
Sample not available.