Sha256: 3457cfcffcfbcb24f66cbed65bfd729ca823b948383a6f90a25b8b1f60c2d97e
Contents?: true
Size: 1.56 KB
Versions: 18
Compression:
Stored size: 1.56 KB
Contents
require 'spec_helper' require 'json' require 'securerandom' require 'debug' describe 'GettingStarted' do before do end after do end it 'api_keys.generate' do configuration = Composio::Configuration.new configuration.api_key = 'YOUR API KEY' configuration.host = 'http://127.0.0.1:4010' composio = Composio::Client.new(configuration) result = composio.api_keys.generate( name: "example" ) p result expect(result).to_not be_nil end it 'api_keys.list' do configuration = Composio::Configuration.new configuration.api_key = 'YOUR API KEY' configuration.host = 'http://127.0.0.1:4010' composio = Composio::Client.new(configuration) result = composio.api_keys.list p result expect(result).to_not be_nil end it 'api_keys.remove' do configuration = Composio::Configuration.new configuration.api_key = 'YOUR API KEY' configuration.host = 'http://127.0.0.1:4010' composio = Composio::Client.new(configuration) result = composio.api_keys.remove(id: "test") end it 'actions.execute' do configuration = Composio::Configuration.new configuration.api_key = 'YOUR API KEY' configuration.host = 'http://127.0.0.1:4010' composio = Composio::Client.new(configuration) result = composio.actions.execute( action_id: "'+j>6", connected_account_id: "string_example", app_name: "string_example", entity_id: "string_example", endpoint: "string_example", input: {}, text: "string_example", ) p result expect(result).to_not be_nil end end
Version data entries
18 entries across 18 versions & 1 rubygems