Class: Composio::AuthApi
- Inherits:
-
Object
- Object
- Composio::AuthApi
- Defined in:
- lib/composio/api/auth_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_user_info(extra: {}) ⇒ Object
Get user info.
-
#get_user_info_with_http_info(extra: {}) ⇒ Object
Get user info.
-
#identify_client_operation(hash:, framework: SENTINEL, extra: {}) ⇒ Object
Identify client.
-
#identify_client_operation_with_http_info(hash:, framework: SENTINEL, extra: {}) ⇒ Object
Identify client.
-
#initialize(api_client = ApiClient.default) ⇒ AuthApi
constructor
A new instance of AuthApi.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
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
24 25 26 27 |
# File 'lib/composio/api/auth_api.rb', line 24 def get_user_info(extra: {}) api_response = get_user_info_with_http_info_impl(extra) api_response.data end |
#get_user_info_with_http_info(extra: {}) ⇒ Object
Get user info
Get client info
34 35 36 |
# File 'lib/composio/api/auth_api.rb', line 34 def get_user_info_with_http_info(extra: {}) get_user_info_with_http_info_impl(extra) end |
#identify_client_operation(hash:, framework: SENTINEL, extra: {}) ⇒ Object
Identify client
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
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 |