A Ruby interface to the Square API.
Add this line to your application's Gemfile:
gem 'square'
And then execute:
$ bundle install --path vendor/bundle
Or install it yourself as:
$ gem install square
Register an application with Square Connect and Get your access token.
Instantiate a Square::Connect::Client for each user's access
client = Square::Connect::Client.new(
access_token: "Your access token"
)
You can make requests as the authenticated user
# Fetch the list of payments
client.payments
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request