Last active
April 21, 2017 18:33
-
-
Save wehub/acb98adc5187ad1c530bc9b479ef1ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # WePay Ruby SDK - http://git.io/a_c2uQ | |
| require 'wepay' | |
| # application settings | |
| client_id = 123456789 | |
| client_secret = '1a3b5c7d9' | |
| access_token = 'STAGE_8a19aff55b85a436dad5cd1386db1999437facb5914b494f4da5f206a56a5d20' | |
| # set _use_stage to false for live environments | |
| wepay = WePay::Client.new(client_id, client_secret, _use_stage = true) | |
| # create an account for a user | |
| response = wepay.call('/account/create', access_token, { | |
| :name => 'Account Name', | |
| :description => 'A description for your account.' | |
| }) | |
| # display the response | |
| p response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment