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": "972e36f6-da6c-42d5-9d31-f98b1f0bb319",
  "UserId": "67cb4a52-1c14-4753-b1cc-efd92caae228",
  "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>972e36f6-da6c-42d5-9d31-f98b1f0bb319</ExternalLoginId>
  <LoginProvider>sample string 3</LoginProvider>
  <ProviderKey>sample string 4</ProviderKey>
  <UserId>67cb4a52-1c14-4753-b1cc-efd92caae228</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": "ba6915ba-9a51-4b5c-9fa3-094bdf1c5f92",
    "UserId": "f45968d4-974d-46e2-a32a-a43cb045a081",
    "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>ba6915ba-9a51-4b5c-9fa3-094bdf1c5f92</d2p1:ExternalLoginId>
    <d2p1:LoginProvider>sample string 3</d2p1:LoginProvider>
    <d2p1:ProviderKey>sample string 4</d2p1:ProviderKey>
    <d2p1:UserId>f45968d4-974d-46e2-a32a-a43cb045a081</d2p1:UserId>
  </ResponseObject>
</AddExternalLoginResponse>