davekaro / square

A Ruby interface to the Square API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Square Ruby Gem

A Ruby interface to the Square API.

Installation

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

Quick Start Guide (Square Connect API)

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A Ruby interface to the Square API

License:MIT License


Languages

Language:Ruby 100.0%