Installation
Add the gem to your Gemfile:Usage
Configure the SDK in an initializer:config/initializers/loops.rb
RubyGems
View the gem on RubyGems.
GitHub
View the documentation and source code.
Loops API
Read the Loops API reference.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
The official Loops SDK for Ruby.
bundle add loops_sdk
gem install loops_sdk
curl -fsSL https://install.loops.so/wizard | sh
require "loops_sdk"
LoopsSdk.configure do |config|
config.api_key = ENV["LOOPS_API_KEY"]
end
begin
response = LoopsSdk::Contacts.create(
email: "test@example.com",
properties: { firstName: "John" }
)
rescue LoopsSdk::APIError => e
puts "Loops API Error: #{e.json['message']} (Status: #{e.statusCode})"
end
Was this page helpful?
