Class: Increase::Resources::OAuthConnections
- Inherits:
-
Object
- Object
- Increase::Resources::OAuthConnections
- Defined in:
- lib/increase/resources/oauth_connections.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ OAuthConnections
constructor
private
A new instance of OAuthConnections.
-
#list(cursor: nil, limit: nil, oauth_application_id: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::OAuthConnection>
Some parameter documentations has been truncated, see Models::OAuthConnectionListParams for more details.
-
#retrieve(oauth_connection_id, request_options: {}) ⇒ Increase::Models::OAuthConnection
Retrieve an OAuth Connection.
Constructor Details
#initialize(client:) ⇒ OAuthConnections
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of OAuthConnections.
61 62 63 |
# File 'lib/increase/resources/oauth_connections.rb', line 61 def initialize(client:) @client = client end |
Instance Method Details
#list(cursor: nil, limit: nil, oauth_application_id: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::OAuthConnection>
Some parameter documentations has been truncated, see Models::OAuthConnectionListParams for more details.
List OAuth Connections
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/increase/resources/oauth_connections.rb', line 46 def list(params = {}) parsed, = Increase::OAuthConnectionListParams.dump_request(params) @client.request( method: :get, path: "oauth_connections", query: parsed, page: Increase::Internal::Page, model: Increase::OAuthConnection, options: ) end |
#retrieve(oauth_connection_id, request_options: {}) ⇒ Increase::Models::OAuthConnection
Retrieve an OAuth Connection
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/oauth_connections.rb', line 17 def retrieve(oauth_connection_id, params = {}) @client.request( method: :get, path: ["oauth_connections/%1$s", oauth_connection_id], model: Increase::OAuthConnection, options: params[:request_options] ) end |