4 ms·
I checked this out, and it reminded me of a pet peeve of mine with APIs. I know this is hacker news and all, but it's annoying when a neat-looking new api is r
by brandnewlow 17y ago
I checked this out, and it reminded me of a pet peeve of mine with APIs.
I know this is hacker news and all, but it's annoying when a neat-looking new api is released like this and the documentation doesn't have any obvious cut-and-paste examples of Get calls to play around with. They offer up two examples, but the "examples" don't resemble anything that I can play with or take action with, I see two code snippets and not much in the way of explanation.
I find enough APIs like this that I have a text file with sample api calls for different services that I get out when I go to play around with them as I can't find cut-and-paste examples of their calls in their documentation.
If anyone can steer me to a URL I can try out (I have an api key), I'd be appreciative. It's just not clear to me, as a somewhat novice developer how to use this service without a blunt example.
- sh1mmer 17y agoI cooked up something for YQL so you can try it in the YQL console: http://developer.yahoo.com/yql/console/?q=select%20*%20from%20geo.placemaker%20where%20documentURL%3D%22http%3A%2F%2Fwww.mnot.net%2Fblog%2F2003%2F12%2F26%2Feurope%22%20and%20documentType%3D%22text%2Fhtml%22%20and%20appid%3D%22EEyPaQrV34FypE_9pTqo_0kVfmvtmgmpDFxXRGLO44C8W4pJVr4JkhAiVMaddrHcvqlm%22&env=http%3A%2F%2Fdatatables.org%2Falltables.env http://developer.yahoo.com/yql/console/?q=select%20*%20from%... Use either documentContent or documentURL to specify what you want to use. I quite enjoyed trying War and Peace (from Gutenberg) although the whole book is a bit big for a single request. Also this my personal API key. So please don't be jerks with it. Enjoy! Disclaimer: I work for Y!
- furburger 17y agoyou know i once saw you at the yahoo coffee bar wearing a shirt with a giant hammer and sickle on it. my immediate conclusion was that you were a hipster who skipped history. in case you need a little refresher on how cool the soviets were, read this: http://en.wikipedia.org/wiki/Holodomor http://en.wikipedia.org/wiki/Holodomor