google image api

Aquí podrás hablar de cualquier tema que no tenga un sección específica.
how to use google image api in ams ?
example project
https://developers.google.com/image-search/

Imagen

As you can see this api is deprecated snce 2011, this means that this api will be shutdown in May 26, 2014

If you want to use it for thta time, you should make a web request to

https://ajax.googleapis.com/ajax/servic ... =1.0&q=LOL

This will give you a json table that you can convert to lua table using this http://code.nytimes.com/svn/dbslayer/br ... a/json.lua lua file, ive used it to parse facebook data, and more...

You will get 4 images, you must download them before show it on you objects, you only can display internet pictures using web or iexplorer.

Remember that there are a long list of arguments that you should use:

https://developers.google.com/image-sea ... _reference

for example, when you place a query, ensure to put in the url the parameter userip=xx.xx.xx.xx since this is needed by google to avoid crawlers.

so your HTTP.GET query sould look as this:

https://ajax.googleapis.com/ajax/servic ... x.xx.xx.xx