Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "swagger": "2.0",
- "info": {
- "title": "podio API",
- "description": "Move your app forward with the podio API",
- "version": "1.0.0"
- },
- "host": "api.podio.com",
- "schemes": [
- "https"
- ],
- "basePath": "",
- "produces": [
- "application/json",
- "application/x-www-form-urlencoded"
- ],
- "paths": {
- "/oauth/token/" : {
- "post" : {
- "tags" : [ "OAuthorization" ],
- "summary" : "Get access token",
- "description" : "Gets a new access token for use when accessing the API.",
- "produces" : [ "application/json" ],
- "parameters" : [
- {
- "name" : "grant_type",
- "in" : "query",
- "required" : true,
- "type" : "string",
- "description" : "grant_type"
- },
- {
- "name" : "username",
- "in" : "query",
- "required" : true,
- "type" : "string",
- "description" : "username"
- },
- {
- "name" : "password",
- "in" : "query",
- "required" : true,
- "type" : "string",
- "description" : "password"
- },
- {
- "name" : "client_id",
- "in" : "query",
- "required" : true,
- "type" : "string",
- "description" : "The key of the API client"
- }, {
- "name" : "client_secret",
- "in" : "query",
- "required" : true,
- "type" : "string",
- "description" : "The secret of the client. This will be generated by Podio and can be acquired in the API key area in Podio."
- } ],
- "responses" : {
- "200" : {
- "description" : "Success",
- "schema" : {
- "type" : "object",
- "properties" : {
- "access_token" : {
- "type" : "string",
- "description" : "The created access token. This is currently 128 characters long"
- },
- "token_type" : {
- "type" : "string",
- "description" : "The type of token, currently always "bearer""
- },
- "expires_in" : {
- "type" : "number",
- "description" : "The number of seconds until the access token expires and cannot be used anymore"
- },
- "refresh_token" : {
- "type" : "string",
- "description" : "The refresh token to use when a new access token is required because the access token expires"
- },
- "ref" : {
- "type" : "object",
- "description" : "The reference to the entity logged in",
- "properties" : {
- "type" : {
- "type" : "string",
- "description" : "The type of the entity, either "user" or "app""
- },
- "id" : {
- "type" : "number"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- { "error": { "code": 400, "context": null, "message": "{"error_parameters":[],"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio.com\/oauth\/token","query_string":"grant_type=password&username=testacc&password=test&client_id=test-app&client_secret=test&redirect_uri=testurl","method":"POST"},"error_description":"Invalid value [\"password\", \"password\"] (array): must be string","error":"invalid_value"}"
Add Comment
Please, Sign In to add comment