ex_heroku_client v0.3.0 Heroku.OauthToken
Summary
Functions
Calls POST /oauth/tokens
params
is JSON encoded and passed as the request body.
params Schema
{
"properties": {
"client": {
"properties": {
"secret": {
"description": "secret used to obtain OAuth authorizations under this client",
"example": "01234567-89ab-cdef-0123-456789abcdef",
"readOnly": true,
"type": [
"string"
]
}
},
"type": [
"object"
]
},
"grant": {
"properties": {
"code": {
"description": "grant code received from OAuth web application authorization",
"example": "01234567-89ab-cdef-0123-456789abcdef",
"readOnly": true,
"type": [
"string"
]
},
"type": {
"description": "type of grant requested, one of `authorization_code` or `refresh_token`",
"example": "authorization_code",
"readOnly": false,
"type": [
"string"
]
}
},
"type": [
"object"
]
},
"refresh_token": {
"properties": {
"token": {
"description": "contents of the token to be used for authorization",
"example": "01234567-89ab-cdef-0123-456789abcdef",
"readOnly": true,
"type": [
"string"
]
}
},
"type": [
"object"
]
}
},
"required": [
"grant",
"client",
"refresh_token"
],
"type": [
"object"
]
}