Class: Composio::CLIApi
- Inherits:
-
Object
- Object
- Composio::CLIApi
- Defined in:
- lib/composio/api/cli_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#exchange_code(extra: {}) ⇒ Object
Handle cli code exchange.
-
#exchange_code_with_http_info(extra: {}) ⇒ Object
Handle cli code exchange.
-
#get_code(key:, code: SENTINEL, extra: {}) ⇒ Object
Get cli code.
-
#get_code_with_http_info(key:, code: SENTINEL, extra: {}) ⇒ Object
Get cli code.
-
#initialize(api_client = ApiClient.default) ⇒ CLIApi
constructor
A new instance of CLIApi.
-
#verify_code(key:, code: SENTINEL, extra: {}) ⇒ Object
Handle cli code verification.
-
#verify_code_with_http_info(key:, code: SENTINEL, extra: {}) ⇒ Object
Handle cli code verification.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
13 14 15 |
# File 'lib/composio/api/cli_api.rb', line 13 def api_client @api_client end |
Instance Method Details
#exchange_code(extra: {}) ⇒ Object
Handle cli code exchange
22 23 24 25 |
# File 'lib/composio/api/cli_api.rb', line 22 def exchange_code(extra: {}) api_response = exchange_code_with_http_info_impl(extra) api_response.data end |
#exchange_code_with_http_info(extra: {}) ⇒ Object
Handle cli code exchange
30 31 32 |
# File 'lib/composio/api/cli_api.rb', line 30 def exchange_code_with_http_info(extra: {}) exchange_code_with_http_info_impl(extra) end |
#get_code(key:, code: SENTINEL, extra: {}) ⇒ Object
Get cli code
95 96 97 98 99 |
# File 'lib/composio/api/cli_api.rb', line 95 def get_code(key:, code: SENTINEL, extra: {}) extra[:code] = code if code != SENTINEL api_response = get_code_with_http_info_impl(key, extra) api_response.data end |
#get_code_with_http_info(key:, code: SENTINEL, extra: {}) ⇒ Object
Get cli code
106 107 108 109 |
# File 'lib/composio/api/cli_api.rb', line 106 def get_code_with_http_info(key:, code: SENTINEL, extra: {}) extra[:code] = code if code != SENTINEL get_code_with_http_info_impl(key, extra) end |
#verify_code(key:, code: SENTINEL, extra: {}) ⇒ Object
Handle cli code verification
182 183 184 185 186 |
# File 'lib/composio/api/cli_api.rb', line 182 def verify_code(key:, code: SENTINEL, extra: {}) extra[:code] = code if code != SENTINEL api_response = verify_code_with_http_info_impl(key, extra) api_response.data end |
#verify_code_with_http_info(key:, code: SENTINEL, extra: {}) ⇒ Object
Handle cli code verification
193 194 195 196 |
# File 'lib/composio/api/cli_api.rb', line 193 def verify_code_with_http_info(key:, code: SENTINEL, extra: {}) extra[:code] = code if code != SENTINEL verify_code_with_http_info_impl(key, extra) end |