POST api/User/AddExternalLogin

Request Information

URI Parameters

None.

Body Parameters

CGExternalLogin
NameDescriptionTypeAdditional 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": "55598d40-7666-4664-b05e-7d0c29120c8b",
  "UserId": "5953150b-9a15-4cf0-b2bb-457d45f8e857",
  "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>55598d40-7666-4664-b05e-7d0c29120c8b</ExternalLoginId>
  <LoginProvider>sample string 3</LoginProvider>
  <ProviderKey>sample string 4</ProviderKey>
  <UserId>5953150b-9a15-4cf0-b2bb-457d45f8e857</UserId>
</CGExternalLogin>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddExternalLoginResponse
NameDescriptionTypeAdditional information
ResponseObject

CGExternalLogin

None.

Code

ResponseCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": {
    "ExternalLoginId": "cfd9c976-7320-4c72-9df8-644302cd000e",
    "UserId": "d96c873f-b438-4208-bc47-279ba4db08c8",
    "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>cfd9c976-7320-4c72-9df8-644302cd000e</d2p1:ExternalLoginId>
    <d2p1:LoginProvider>sample string 3</d2p1:LoginProvider>
    <d2p1:ProviderKey>sample string 4</d2p1:ProviderKey>
    <d2p1:UserId>d96c873f-b438-4208-bc47-279ba4db08c8</d2p1:UserId>
  </ResponseObject>
</AddExternalLoginResponse>