
We now have an API so you can easily integrate Thumbfight results right into your application. It is really easy, just a single JSON call.
Here is a simple example using curl with a single term:
$ curl "http://www.thumbfight.com/fight.json?challenger1=apple"
which returns the following JSON:
{"challenger1":{"score":"3 thumbs up","title":"apple"}}
Here is an example using curl with two terms:
$ curl "http://www.thumbfight.com/fight.json?challenger1=apple&challenger2=microsoft"
which returns the following JSON:
{"challenger2":{"score":"undecided","title":"microsoft"},"challenger1":{"score":"3 thumbs up","title":"apple"}}
Anyhow, enjoy, and we look forward to seeing what people come up with.
No comments:
Post a Comment