Skip to content

Instantly share code, notes, and snippets.

@garrettwilkin
Created September 14, 2012 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettwilkin/3724263 to your computer and use it in GitHub Desktop.
Save garrettwilkin/3724263 to your computer and use it in GitHub Desktop.
Attempting to add new mapping to piratespeak.dictiony "up","aloft"
When I execute this URL in my browser:
http://query.yahooapis.com/v1/public/yql?q=insert%20into%20piratespeak.dictionary%20(english_term%2C%20pirate_term)%20values%20(%22up%22%2C%20%22aloft%22)%3B&format=json&env=store%3A%2F%2Fkid666.com%2Fpiratespeak&callback=cbfunc
I get this response:
cbfunc({"query":{"count":1,"created":"2012-09-14T19:42:19Z","lang":"en-US","results":{"result":"Ahoy mate! Ye doth added ye Pirate term \"aloft\" for yonder English term \"up\""}}});
It looks good, but if i go back to the console and get the URL to list everything in piratespeak.dictionary,
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20piratespeak.dictionary&format=json&env=store%3A%2F%2Fkid666.com%2Fpiratespeak&callback=cbfunc
I don't see the new item:
cbfunc({"query":{"count":1,"created":"2012-09-14T19:44:37Z","lang":"en-US","results":{"result":{"comes":"hails","friends":"crew","your":"ye","right":"starboard","woman":"wench","lawyer":"scurvy land lubber","hello":["ahoy","avast"],"the":["ye","yonder","thar"],"girl":"lass","is":"be","boy":"cabin boy","person":"landlubber","friend":"mate","beer":"grog","left":"port","yes":["yarr","aye"],"are":"be"}}}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment