forked from square/connect-api-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
67 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Ruby V1 example | ||
|
||
The samples in this directory demonstrate basic use of Square Connect API v1 in Ruby. Before you run any of these samples, be sure to complete the steps described below. | ||
|
||
### How to run | ||
* First, install `unirest` by opening your terminal | ||
and typing: | ||
``` | ||
gem install unirest | ||
gem install sinatra | ||
``` | ||
* Fill in the required variables (`REPLACE_ME`) | ||
in all of the files | ||
* Then run each file individually: | ||
``` | ||
ruby item-management.rb | ||
ruby payments-report.rb | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters