Ruby SDK
FoPost Ruby SDK for Ruby and Rails applications.
Ruby SDK
Coming Soon
The OwlStack Ruby SDK is currently in development. Sign up for updates at owlstack.app to be notified when it's available.
What to Expect
The Ruby SDK will provide a native Ruby client for the OwlStack API, designed for:
- Ruby on Rails integration with generators and helpers
- Sinatra, Hanami, and other Ruby frameworks
- RubyGems distribution (
gem install owlstack) - ActiveJob support for background publishing
Preview
require 'owlstack'
client = OwlStack::Client.new(api_key: ENV['OWLSTACK_API_KEY'])
result = client.publish(
content: 'Hello from Ruby!',
platforms: [:twitter, :linkedin],
media: [{ type: :image, path: './photo.jpg' }],
hashtags: ['ruby', 'rails']
)
result.each do |r|
puts "#{r.platform}: #{r.url}"
endRails Integration
# config/initializers/owlstack.rb
OwlStack.configure do |config|
config.api_key = Rails.application.credentials.owlstack_api_key
end
# In your controller or model
OwlStack.publish('New blog post!', platforms: [:twitter, :linkedin])In the Meantime
You can use the OwlStack REST API directly from any Ruby application using net/http or faraday.