0.02
Low commit activity in last 3 years
A long-lived project that still receives updates
Native ruby client for the Flow REST API. Detailed information at https://app.apibuilder.io/flow/api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

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

Ububtu

https://support.purevpn.com/how-to-disable-ipv6-linuxubuntu