Skip to content

Instantly share code, notes, and snippets.

@adamloving
Created April 27, 2011 16:51
Show Gist options
  • Save adamloving/944645 to your computer and use it in GitHub Desktop.
Save adamloving/944645 to your computer and use it in GitHub Desktop.
Use BigDoor API to award points via a shell script
# 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"
@adamloving
Copy link
Author

For the fully featured implementation, see BigDoor bashkit https://bitbucket.org/bigdoor_jeff/bigdoor_bashkit/src/9f979d72ab3c/bigdoor_bashkit.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment