POST api/users/me/social/link
This method should be used to link an external social account to user's account for the purpose of login
Requires Authorization!
Request Information
URI Parameters
None.
Body Parameters
Instance of the
RegisterExternalBindingModelName | Description | Type | Additional information |
---|---|---|---|
Provider | string |
Required |
|
ExternalAccessToken | string |
Required |
|
ClientId | string |
Required |
|
Username | string |
None. |
|
Avatar | string |
None. |
|
RedirectUri | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "provider": "sample string 1", "externalAccessToken": "sample string 2", "clientId": "sample string 3", "username": "sample string 4", "avatar": "sample string 5", "redirectUri": "sample string 6" }
text/html
Sample:
{"provider":"sample string 1","externalAccessToken":"sample string 2","clientId":"sample string 3","username":"sample string 4","avatar":"sample string 5","redirectUri":"sample string 6"}
application/xml, text/xml
Sample:
<RegisterExternalBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels"> <Avatar>sample string 5</Avatar> <ClientId>sample string 3</ClientId> <ExternalAccessToken>sample string 2</ExternalAccessToken> <Provider>sample string 1</Provider> <RedirectUri>sample string 6</RedirectUri> <Username>sample string 4</Username> </RegisterExternalBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Access token
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |