Native ruby client to the Flow API (https://api.flow.io)
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.
Complete API documentation is available at https://docs.flow.io
Debugging / Issues
Please disable IPv6. We are currently working on IPv6 compatibility for the APIs.
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