Created
May 30, 2017 21:19
-
-
Save wehub/03ae1e033e23369ccb7f1727ceaa1e8e 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 | |
| account_id = 123456789; | |
| client_id = 123456789; | |
| client_secret = '1a3b5c7d9'; | |
| access_token = '1a3b5c7d9'; | |
| # create a theme | |
| theme = { | |
| :name => 'My Sample Theme', | |
| :primary_color => 'FFFFFF', | |
| :secondary_color => '000000', | |
| :background_color => '004C64', | |
| :button_color => '0084A0' | |
| } | |
| # set _use_stage to false for live environments | |
| wepay = WePay::Client.new(client_id, client_secret, _use_stage = true) | |
| # modify your account | |
| response = wepay.call('/account/modify', access_token, { | |
| :account_id => account_id, | |
| :theme_object => theme | |
| }) | |
| # display the response | |
| p response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment