Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
bgColor#FFFFFF
titleBGColor#C8D0E4
titletoken

token

VendorAccessTokenInfo token ( String client_idGrantType grantGrantType grant_type, String code, String client_secret, String refresh_token ) throws AccountAPINGExceptionthrows AccountAPINGException

Generate web vendor session based on a standard session identifiable by auth code, vendor secret and app key

Parameter name

Type

Required

Description

client_id

String

The vendor's vendorId

grant_type

GrantType

Whether the vendor is using an authorisation code or a refresh token to get a session

code

String

 

The authorisation code used to lookup the session to be returned

client_secret

String

The vendor's private key used to verify their identity

refresh_token

String

 

The vendor's refresh token if the grant_type is refresh_token

Return type

Description

VendorAccessTokenInfo

Response object containing VendorAccessToken, RefreshToken and optionally a Subscription Token if one was created

Throws

Description

AccountAPINGException

 

Since 1.0.0