POST 17.0/app/email/settings/oauth/google/token

Description

Exchanges the passed auth code for access and refresh tokens

URI Parameters

None.

Name Description Type Additional information
AuthCode

string

Required

EmailAddress

string

None.

application/json, text/json

Sample:
{
  "authCode": "sample string 1",
  "emailAddress": "sample string 2"
}

application/xml, text/xml

Sample:
<OAuthAccessTokenRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AuthCode>sample string 1</AuthCode>
  <EmailAddress>sample string 2</EmailAddress>
</OAuthAccessTokenRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Name Description Type Additional information
AccessToken

string

None.

ExpiresIn

integer

None.

RefreshToken

string

None.

Scope

string

None.

TokenType

string

None.

application/json, text/json

Sample:
{
  "accessToken": "sample string 1",
  "expiresIn": 2,
  "refreshToken": "sample string 3",
  "scope": "sample string 4",
  "tokenType": "sample string 5"
}

application/xml, text/xml

Sample:
<OAuthTokenResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AccessToken>sample string 1</AccessToken>
  <ExpiresIn>2</ExpiresIn>
  <RefreshToken>sample string 3</RefreshToken>
  <Scope>sample string 4</Scope>
  <TokenType>sample string 5</TokenType>
</OAuthTokenResponse>