Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

ThreadSync Ruby SDK

Gem VersionLicenseRuby

Official Ruby SDK for the ThreadSync API — enterprise data integration platform.

Installation

Preview: SDKs are in preview and installed from GitHub. RubyGems packages will be available at GA.

Add to your Gemfile:

gem'threadsync',git: 'https://github.com/threadsync-infrastructure/threadsync-ruby.git'

Then run:

bundle install

Quick Start

require'threadsync'client=ThreadSync::Client.new(bearer_token: 'your-bearer-token')# Create a connectionconnection=client.connections.create(provider: 'salesforce')puts"Connection ID: #{connection.id}, Status: #{connection.status}"# Retrieve a connectionfetched=client.connections.get(connection.id)# Create a syncsync=client.sync.create(source: {connection: 'conn_salesforce_123',object: 'Contact',table: 'contacts'},destination: {connection: 'conn_postgres_456',object: 'record',table: 'salesforce_contacts'},schedule: '0 * * * *')puts"Sync ID: #{sync.id}, Status: #{sync.status}"# Check sync statusresult=client.sync.get(sync.id)puts"Records synced: #{result.records_synced}"

API Reference

ThreadSync::Client

ParameterTypeDescription
bearer_token:StringYour ThreadSync API key
base_url:StringOverride the API base URL (optional)

client.connections

MethodDescription
create(provider:)Create a new connection
get(id)Retrieve a connection by ID

client.sync

MethodDescription
create(source:, destination:, schedule:)Create a new sync job
get(id)Retrieve a sync job by ID

Models

  • Connectionid, provider, name, status
  • SyncResultid, status, records_synced

Requirements

  • Ruby 3.0 or later

License

MIT — see LICENSE for details.

About

Official Ruby SDK for ThreadSync's LLM Gateway. Multi-provider governed AI access with policy controls and audit trails.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages