Skip to content

davekaro/square

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%