Today’s gruedorf update isn’t game related! It’s pingpawn.com related!
Now you can query pingpawn for the number of quotes that match a query string. You can further filter this by quotefile.
Examples for queries of quotes containing the word taco:
http://pingpawn.com/api/count/?q=taco
http://pingpawn.com/api/count/gayo/?q=taco
http://pingpawn.com/api/count/grue/?q=taco
Exciting, no?
What did you use to implement the API?
Nothing fancy. Just some CakePHP controller functions. If scale ever becomes an issue with pingpawn, it’ll be simple to recode the mofo in something beefier.
https://github.com/mcgrue/pingpawn/blob/master/app/controllers/api_controller.php
(I even just broke the MVC rules and put my queries in the controller straight up because I’m lazy like that for this project.)