Class: Podio::OAuth
- Inherits:
-
ActivePodio::Base
- Object
- ActivePodio::Base
- Podio::OAuth
- Defined in:
- lib/podio/models/o_auth.rb
Instance Attribute Summary
Attributes inherited from ActivePodio::Base
#attributes, #error_code, #error_message, #error_parameters, #error_propagate
Class Method Summary collapse
- .authorize(attributes) ⇒ Object
- .get_access_token(attributes) ⇒ Object
- .get_info(attributes) ⇒ Object
Methods inherited from ActivePodio::Base
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, handle_api_errors_for, has_many, has_one, #hash, #initialize, list, member, #new_record?, #persisted?, property, #to_param
Constructor Details
This class inherits a constructor from ActivePodio::Base
Class Method Details
.authorize(attributes) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/podio/models/o_auth.rb', line 4 def (attributes) response = Podio.connection.post do |req| req.url "/oauth/authorize" req.body = attributes end response.body end |
.get_access_token(attributes) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/podio/models/o_auth.rb', line 22 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) ⇒ Object
13 14 15 16 17 18 19 20 |
# 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 |