Skip to content

Square-Developers/ruby-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Square Ruby SDK Quickstart

This quickstart sample creates a Square client instance with your Square access token and then lists the locations in your account. The sample is based on the Ruby SDK Quickstart guide.

Setup

Install Ruby - If ruby -v is not found as a command, install Ruby.

Install Ruby Bundler - If bundle -v is not found as a command, install Bundler.

Quickstart Instructions

  1. Change into the quickstart directory.

  2. Copy .env.example to .env and replace YOUR_ACCESS_TOKEN with your Sandbox access token.

    SQUARE_ACCESS_TOKEN=EAAAEBRdRGhiYCNp8rwVzdcU-qbZuhsM55iGYH_EXAMPLE
    
  3. In Gemfile, replace PLACE_VERSION_HERE with the latest SDK version from here.

  4. Run the bundler to install local dependencies:

    $ bundle install
    
  5. Run the program:

    $ rake run
    
  6. In your console you should see output similar to this:

    LHG1ZXJ8KSR8Z: Default Test Account, 1600 Pennsylvania Ave NW, Washington
    

Resources

Square Ruby SDK Guide - Details on how to configure and use the Square client.

Ruby Gem Repository for Square - Repo with the SDK package files.

Ruby SDK Source Code - Github repo with the source code.

About

Quickly get started with Square's Developer Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages