Class: Composio::AuthApi

Inherits:
Object
  • Object
show all
Defined in:
lib/composio/api/auth_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ AuthApi

Returns a new instance of AuthApi.



15
16
17
# File 'lib/composio/api/auth_api.rb', line 15

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



13
14
15
# File 'lib/composio/api/auth_api.rb', line 13

def api_client
  @api_client
end

Instance Method Details

#get_user_info(extra: {}) ⇒ Object

Get user info

Get client info

Parameters:

  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



24
25
26
27
# File 'lib/composio/api/auth_api.rb', line 24

def (extra: {})
  api_response = (extra)
  api_response.data
end

#get_user_info_with_http_info(extra: {}) ⇒ Object

Get user info

Get client info

Parameters:

  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



34
35
36
# File 'lib/composio/api/auth_api.rb', line 34

def (extra: {})
  (extra)
end

#identify_client_operation(hash:, framework: SENTINEL, extra: {}) ⇒ Object

Identify client

Parameters:

  • hash (String)

    The hash of the client

  • framework (String) (defaults to: SENTINEL)

    The framework used by the client

  • body (IdentifyClientReqDTO)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



102
103
104
105
106
107
108
109
# File 'lib/composio/api/auth_api.rb', line 102

def identify_client_operation(hash:, framework: SENTINEL, extra: {})
  _body = {}
  _body[:hash] = hash if hash != SENTINEL
  _body[:framework] = framework if framework != SENTINEL
  extra[:identify_client_req_dto] = _body if !_body.empty?
  api_response = identify_client_operation_with_http_info_impl(extra)
  api_response.data
end

#identify_client_operation_with_http_info(hash:, framework: SENTINEL, extra: {}) ⇒ Object

Identify client

Parameters:

  • hash (String)

    The hash of the client

  • framework (String) (defaults to: SENTINEL)

    The framework used by the client

  • body (IdentifyClientReqDTO)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



117
118
119
120
121
122
123
# File 'lib/composio/api/auth_api.rb', line 117

def identify_client_operation_with_http_info(hash:, framework: SENTINEL, extra: {})
  _body = {}
  _body[:hash] = hash if hash != SENTINEL
  _body[:framework] = framework if framework != SENTINEL
  extra[:identify_client_req_dto] = _body if !_body.empty?
  identify_client_operation_with_http_info_impl(extra)
end