Last active
June 19, 2017 21:46
-
-
Save wehub/b810acd672c008ebf4140c9e7771a867 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 Python SDK - http://git.io/v7Y1jA | |
| from wepay import WePay | |
| # application settings | |
| account_id = 123456789 | |
| access_token = '1a3b5c7d9' | |
| production = False | |
| # create a theme | |
| theme = { | |
| 'name': 'My Sample Theme', | |
| 'primary_color': 'FFFFFF', | |
| 'secondary_color': '000000', | |
| 'background_color': '004C64', | |
| 'button_color': '0084A0' | |
| } | |
| # set production to True for live environments | |
| wepay = WePay(production, access_token) | |
| # modify your account | |
| response = wepay.call('/account/modify', { | |
| 'account_id': account_id, | |
| 'theme_object': theme | |
| }) | |
| # display the response | |
| print response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment