How to search and get the data

191 views
Skip to first unread message

alucas2k

unread,
May 6, 2012, 2:40:53 PM5/6/12
to panora...@googlegroups.com

¡Hi to everone!

I need to use the new Panoramio API but I'm lost with the code, someone can help me?

I want to save metadata of the 10 most popular images from a search (eg "Taj Mahal").

I understand that I must use the PhotoRequest class, for example:

var myRequest = new panoramio.PhotoRequest({ 
'tag':'taj mahal' 
});
 

But then I don't know how to access the data. Also, I don't see how to set the number of photos or the most popular…

I know that exists the Photo class, but I don't know how to use it.

¿Can anyone show me a sample code?


Thank you very much!

alucas2k

unread,
May 8, 2012, 2:29:02 AM5/8/12
to panora...@googlegroups.com
I try to print the paramerts and values of the Object myRequest with this:

for(key in myRequest){
document.write("objeto["+key+"]:"+myRequest[key]+"<br><br>");
}

But I don't understand and I don't know how to work with that:

objeto[Cb]:[object Object]
objeto[oc]:[object Object]
objeto[a]:function (){this.oc.e();delete this.Cb;delete this.oc;CPWAMd.c.a.call(this)}
objeto[dispose]:function (){this.Da||(this.Da=CPWAc,this.a())}
objeto[Da]:false
objeto[h]:function (){return this.Da}
objeto[e]:function (){this.Da||(this.Da=CPWAc,this.a())}

Please, can anyone help me?

Thanks!!!!


Reply all
Reply to author
Forward
0 new messages