POST api/User/AddExternalLogin
Request Information
URI Parameters
None.
Body Parameters
CGExternalLogin| Name | Description | Type | Additional information |
|---|---|---|---|
| ExternalLoginId | globally unique identifier |
None. |
|
| UserId | globally unique identifier |
None. |
|
| LoginProvider | string |
None. |
|
| ProviderKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ExternalLoginId": "f222d7ce-6bf9-4a93-b365-d297079d074b",
"UserId": "d0f61038-2746-4049-b287-0f249f9f4981",
"LoginProvider": "sample string 3",
"ProviderKey": "sample string 4"
}
application/xml, text/xml
Sample:
<CGExternalLogin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.Data"> <ExternalLoginId>f222d7ce-6bf9-4a93-b365-d297079d074b</ExternalLoginId> <LoginProvider>sample string 3</LoginProvider> <ProviderKey>sample string 4</ProviderKey> <UserId>d0f61038-2746-4049-b287-0f249f9f4981</UserId> </CGExternalLogin>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AddExternalLoginResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseObject | CGExternalLogin |
None. |
|
| Code | ResponseCode |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseObject": {
"ExternalLoginId": "6e85d30d-06c6-48cf-9dad-cf52e50b86ef",
"UserId": "4c37eb00-e2cf-4eaa-a2fb-30c17b9a73d0",
"LoginProvider": "sample string 3",
"ProviderKey": "sample string 4"
},
"Code": 0,
"Message": "sample string 1"
}
application/xml, text/xml
Sample:
<AddExternalLoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.CasualGolf.WebApi.Contracts">
<Code>None</Code>
<Message>sample string 1</Message>
<ResponseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/DotGolf.Data">
<d2p1:ExternalLoginId>6e85d30d-06c6-48cf-9dad-cf52e50b86ef</d2p1:ExternalLoginId>
<d2p1:LoginProvider>sample string 3</d2p1:LoginProvider>
<d2p1:ProviderKey>sample string 4</d2p1:ProviderKey>
<d2p1:UserId>4c37eb00-e2cf-4eaa-a2fb-30c17b9a73d0</d2p1:UserId>
</ResponseObject>
</AddExternalLoginResponse>