class Podio::OAuth

@see developers.podio.com/doc/oauth-authorization

Public Class Methods

authorize(attributes) click to toggle source
# File lib/podio/models/o_auth.rb, line 4
def authorize(attributes)
  response = Podio.connection.post do |req|
    req.url "/oauth/authorize"
    req.body = attributes
  end

  response.body
end
get_access_token(attributes) click to toggle source

@see developers.podio.com/doc/oauth-authorization/get-access-token-22359

# File lib/podio/models/o_auth.rb, line 23
def get_access_token(attributes)
  response = Podio.connection.post do |req|
    req.url "/oauth/token"
    req.body = attributes
  end

  response.body
end
get_info(attributes) click to toggle source
# File lib/podio/models/o_auth.rb, line 13
def get_info(attributes)
  response = Podio.connection.post do |req|
    req.url "/oauth/info"
    req.body = attributes
  end

  response.body
end
invalidate_grant() click to toggle source

@see developers.podio.com/doc/oauth-authorization/invalidate-grant-7997965

# File lib/podio/models/o_auth.rb, line 33
def invalidate_grant
  response = Podio.connection.post do |req|
    req.url '/oauth/grant/invalidate'
  end

  response.status
end