PUT api/account/link/google

Link Google login.

Request Information

URI Parameters

None.

Body Parameters

Google account link DTO.

LinkGoogleAccountDTO
NameDescriptionTypeAdditional information
GoogleID

Google ID

string

None.

Email

User's email.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "GoogleID": "sample string 1",
  "Email": "sample string 2"
}

text/html

Sample:
{"GoogleID":"sample string 1","Email":"sample string 2"}

application/xml, text/xml

Sample:
<LinkGoogleAccountDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <Email>sample string 2</Email>
  <GoogleID>sample string 1</GoogleID>
</LinkGoogleAccountDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LinkGoogleAccountDTO'.

Response Information

Resource Description

GoogleAccountLinkStatus

Response Formats

application/json, text/json, text/html

Sample:
0

application/xml, text/xml

Sample:
<GoogleAccountLinkStatus xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">CannotBeLinked</GoogleAccountLinkStatus>