Created
April 27, 2011 16:51
-
-
Save adamloving/944645 to your computer and use it in GitHub Desktop.
Use BigDoor API to award points via a shell script
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
| # the simplest possible way to award points | |
| # note that this uses the JSONP proxy and is insecure (subject to frequency caps, you can give yourself or anybody else as many points as you want) | |
| # check that user exists | |
| curl -v "http://api.bigdoor.com/api/publisher/f284d42515214498baf2f601845f5c2c/proxy/end_user/adamloving?method=GET&callback=callback" | |
| # execute XP transaction | |
| curl -v "http://api.bigdoor.com/api/publisher/f284d42515214498baf2f601845f5c2c/proxy/named_transaction_group/618557/execute/adamloving?method=POST&callback=callback&non_secure=1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the fully featured implementation, see BigDoor bashkit https://bitbucket.org/bigdoor_jeff/bigdoor_bashkit/src/9f979d72ab3c/bigdoor_bashkit.sh