ObtainTokenRequest

April 25, 2020 ยท View on GitHub

Description

Properties

NameGetterSetterTypeDescriptionNotes
client_idgetClientId()setClientId($value)stringThe Square-issued ID of your application, available from the application dashboard.
client_secretgetClientSecret()setClientSecret($value)stringThe Square-issued application secret for your application, available from the application dashboard.
codegetCode()setCode($value)stringThe authorization code to exchange. This is required if `grant_type` is set to `authorization_code`, to indicate that the application wants to exchange an authorization code for an OAuth access token.[optional]
redirect_urigetRedirectUri()setRedirectUri($value)stringThe redirect URL assigned in the application dashboard.[optional]
grant_typegetGrantType()setGrantType($value)stringSpecifies the method to request an OAuth access token. Valid values are: `authorization_code`, `refresh_token`, and `migration_token`
refresh_tokengetRefreshToken()setRefreshToken($value)stringA valid refresh token for generating a new OAuth access token. A valid refresh token is required if `grant_type` is set to `refresh_token` , to indicate the application wants a replacement for an expired OAuth access token.[optional]
migration_tokengetMigrationToken()setMigrationToken($value)stringLegacy OAuth access token obtained using a Connect API version prior to 2019-03-13. This parameter is required if `grant_type` is set to `migration_token` to indicate that the application wants to get a replacement OAuth access token. The response also returns a refresh token. For more information, see Migrate to Using Refresh Tokens.[optional]

Note: All properties are protected and only accessed via getters and setters.

[Back to Model list] [Back to API list] [Back to README]