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": "6adba1c5-efda-4723-b04b-4f4510e8c0c4",
  "UserId": "5c2fb351-d77b-4937-9fe9-009280f4380e",
  "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>6adba1c5-efda-4723-b04b-4f4510e8c0c4</ExternalLoginId>
  <LoginProvider>sample string 3</LoginProvider>
  <ProviderKey>sample string 4</ProviderKey>
  <UserId>5c2fb351-d77b-4937-9fe9-009280f4380e</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": "ad7b1507-dab2-4217-9c51-672ae82e8e16",
    "UserId": "a4a13036-2a53-4c69-acf3-2d0affd41858",
    "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>ad7b1507-dab2-4217-9c51-672ae82e8e16</d2p1:ExternalLoginId>
    <d2p1:LoginProvider>sample string 3</d2p1:LoginProvider>
    <d2p1:ProviderKey>sample string 4</d2p1:ProviderKey>
    <d2p1:UserId>a4a13036-2a53-4c69-acf3-2d0affd41858</d2p1:UserId>
  </ResponseObject>
</AddExternalLoginResponse>