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

Version Path
composio-0.1.18 spec/simple_test_spec.rb
composio-0.1.17 spec/simple_test_spec.rb
composio-0.1.16 spec/simple_test_spec.rb
composio-0.1.15 spec/simple_test_spec.rb
composio-0.1.14 spec/simple_test_spec.rb
composio-0.1.13 spec/simple_test_spec.rb
composio-0.1.12 spec/simple_test_spec.rb
composio-0.1.11 spec/simple_test_spec.rb
composio-0.1.10 spec/simple_test_spec.rb
composio-0.1.9 spec/simple_test_spec.rb
composio-0.1.8 spec/simple_test_spec.rb
composio-0.1.7 spec/simple_test_spec.rb
composio-0.1.6 spec/simple_test_spec.rb
composio-0.1.5 spec/simple_test_spec.rb
composio-0.1.4 spec/simple_test_spec.rb
composio-0.1.3 spec/simple_test_spec.rb
composio-0.1.2 spec/simple_test_spec.rb
composio-0.1.1 spec/simple_test_spec.rb