User Tools

Site Tools


misc:penny_arcade_random

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
misc:penny_arcade_random [2013/05/28 20:21] jaymisc:penny_arcade_random [2014/09/04 21:00] (current) jay
Line 14: Line 14:
 | bal | 1 | If you include this key, it will balance the red and green cards that are used | | bal | 1 | If you include this key, it will balance the red and green cards that are used |
 | pp | 1 | This is mainly used for testing/debugging.  It will "pretty print" out your results | | pp | 1 | This is mainly used for testing/debugging.  It will "pretty print" out your results |
 +| jsonp | str:callback | The name of the callback is used for a JSONP response |
 +| callback | str:callback | An alias for jsonp |
  
 As you can see, this is pretty simple.  If you want to generate a JSON response with all options set, just do [[http://pa.splitstreams.com/pa.cgi?gset=1&gset=2&gold=1&bal=1&pp=1]]. As you can see, this is pretty simple.  If you want to generate a JSON response with all options set, just do [[http://pa.splitstreams.com/pa.cgi?gset=1&gset=2&gold=1&bal=1&pp=1]].
 +
 +There is also an "allow any" header for CORS support as well.
  
 ==== Source Code ==== ==== Source Code ====
 If anyone is actually interested in getting the source for this, let me know.  It's not very good (one more time, totally hacked this out one afternoon), but just send me an email and I could add it to github or something.  Otherwise, use the site/API as you desire. If anyone is actually interested in getting the source for this, let me know.  It's not very good (one more time, totally hacked this out one afternoon), but just send me an email and I could add it to github or something.  Otherwise, use the site/API as you desire.
misc/penny_arcade_random.1369772483.txt.gz · Last modified: 2013/05/28 20:21 by jay