|
RE: Connect your Bot to the World - XML, JSON, Web Services, HTML Scraping, Twitter, Facebook, Telegram, Email |
The requestXML() function takes two parameters, but the requestJSON() only takes one currently (this will soon be fixed to allow a second attribute argument).
1 2 3 4 var result = Http.requestJSON("http://api.geonames.org/postalCodeSearchJSON?maxRows=1&username=botlibre&postalcode=92590"); result = result.postalCodes.get(#element, 0).placeName; The get() can be used to get an element from a JSON array. |
|
|
|
|