flow-ruby
Native ruby client to the Flow API (https://api.flow.io)
Installation
gem install flowcommerce
require 'flowcommerce'
client = FlowCommerce.instance(:token => "<YOUR API TOKEN>")
client.items.get("<YOUR ORGANIZATION ID>", :limit => 5, :offset => 0).each do |i|
puts i.number
end
Running the Examples in this Repository
1. Create a file named ~/.flow/token that contains your API token
and nothing else
2. ruby ./example.rb <org id>
Code for each example is in the examples directory, designed to really highlight the use of key APIs in as clear a way as possible.
Documentation
Complete API documentation is available at https://docs.flow.io
Debugging / Issues
IPv6
Please disable IPv6. We are currently working on IPv6 compatibility for the APIs.
Mac OS
If you are seeing very slow (multi-second response times), it might be this: Net::HTTP extremely slow responses for HTTPS requests
The solution is to run
networksetup -setv6off Wi-Fi