API updates

2011 September 15
by mcgrue

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?

2 Comments leave one →
2011 September 15

What did you use to implement the API?

2011 September 15

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.)

Leave A Comment

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS