Widget API for beginners

764 views
Skip to first unread message

Daniela Brocca

unread,
Nov 10, 2010, 5:14:28 AM11/10/10
to panora...@googlegroups.com

JBTHEMILKER

unread,
Nov 10, 2010, 5:22:55 AM11/10/10
to panora...@googlegroups.com
I would like to be able to do just that, like that link.

Draken

unread,
Nov 10, 2010, 5:46:56 AM11/10/10
to panora...@googlegroups.com

FSup

unread,
Nov 10, 2010, 5:47:05 AM11/10/10
to panora...@googlegroups.com
As you can see from the link he simply uses the widget API


It is easy to use:


Looks like this

Used Parameters:
user=477291 - Shows only photos of that User-ID
order=date_desc - Newest uploads are shown first
tag=Fountain - show only photos with the tag 'Fountain'
delay=3 - Time between two photos is set to 3 seconds



For further information please read the documentation about the widget API.


BTW: The user's link from above is not right - he tried to select several tags at the same time which is not possible and he has many 'amps;' in his link that are not needed for anything. Perhaps he copied it from anywhere.

Tomas K☼h☼ut

unread,
Nov 10, 2010, 5:55:52 AM11/10/10
to panora...@googlegroups.com
Thank a lot Daniela for pointing me the right way! :applause: :D

I never thought the use of API widget is so easy and that I am a step from automatic slideshow... (yes, I did not bother to read API documentation and to experiment with API so far...)!

Daniela Brocca

unread,
Nov 10, 2010, 6:02:47 AM11/10/10
to panora...@googlegroups.com
You're welcome, Tomas :D

But could you also help us to this? I did not bother to read API documentation because I do not understand it anyway. But maybe with the right help.... I mean step by step :lol:

FSup

unread,
Nov 10, 2010, 6:03:08 AM11/10/10
to panora...@googlegroups.com
'%20' is the masked 'Space' character, that's the reason why '&tag=Elvis%20Presley' is right - '&tag=Elvis Presley' would not work!

You have to know also, that the optional tag-selector is case-sensitve so '&tag=frankfurt' is not the same as '&tag=Frankfurt'.

Tomas K☼h☼ut

unread,
Nov 10, 2010, 6:08:01 AM11/10/10
to panora...@googlegroups.com
OK Daniela... on which step are you standing now? :)
I think everything was said in previous examples.

Here is a link to slideshow from your gallery:
http://www.panoramio.com/wapi/template/slideshow.html?user=477291&width=1200&height=900&amp

And here restriction to "Canary Islands" tag...
http://www.panoramio.com/wapi/template/slideshow.html?user=477291&width=1200&height=900&tag=Canary%20Islands

Daniela Brocca

unread,
Nov 10, 2010, 6:56:01 AM11/10/10
to panora...@googlegroups.com
I see, it begin from the last page, all the scanned photos.

But what about a tag with only a name , Paris, for exemple? Or Venice? I tried and it doesn't work. I see there are numbers. Is this the size of the photos?

papkassen

unread,
Nov 10, 2010, 7:09:13 AM11/10/10
to panora...@googlegroups.com
just tried them both, it works

so thank you Tomas K☼h☼ut, for paint it out for us, and thank to this A. Drexler for plant it in a comment, and thanks to Daniela Brocca fo bringing it into the forum.

and now, how do we get it under that "launch slideshow button" ?????

FSup

unread,
Nov 10, 2010, 7:12:49 AM11/10/10
to panora...@googlegroups.com
Quote Daniela Brocca:
I see, it begin from the last page, all the scanned photos.

But what about a tag with only a name , Paris, for exemple? Or Venice? I tried and it doesn't work. I see there are numbers. Is this the size of the photos?


You should read the documentation or give a more detailed question :)

'There are numbers - what is it?' can't be answerd ;)


See this code:


Before the numbers there is a word - this word says what parameter is defined behind it.

User = XXX
This defines the user from which photos are shown - XXX must be the Used-ID (= numbers)

Width=xxx
Width is an optional parameter and describes the width that is used to show the photos. They are scaled so each photo is shown with a width of xxx (xxx are numbers)

height = xxx
It is the same like width only for the height and xxx are numbers.

If you want to show photos with a particular tag use the the tag parameter:
http://www.panoramio.com/wapi/template/slideshow.html?user=477291&width=1200&height=900&tag=Venice



In the documentation are several well commented examples - it is worth to read them and play with the code what is easy as it can be entered in the address-line of the browser directly. For example change the values of height and width and see what happens ;)

FSup

unread,
Nov 10, 2010, 7:15:59 AM11/10/10
to panora...@googlegroups.com
Quote papkassen:
[...]

and now, how do we get it under that "launch slideshow button" ?????



:roll: :roll: :roll:
PLEASE: Read the Widget API documentation

You will find the answer here



Examples:
http://www.panoramio.com/wapi/template/photo.html?user=2358751&tag=Flensburg&delay=3&height=200&width=300

http://www.panoramio.com/wapi/template/slideshow.html?user=2358751&tag=Flensburg&delay=3&height=200&width=300

http://www.panoramio.com/wapi/template/list.html?user=2358751&tag=Flensburg&delay=3&height=200&width=300

http://www.panoramio.com/wapi/template/photo_list.html?user=2358751&tag=Flensburg&delay=3&height=200&width=300



I only changed the called html-page to get the different results.
Not every parameter makes sense in every visualisation but if they are senseless the API ignores them. For example the delay-paramter is only interesting for the slideshow.

Tomas K☼h☼ut

unread,
Nov 10, 2010, 7:16:17 AM11/10/10
to panora...@googlegroups.com
Quote papkassen:

... how do we get it under that "launch slideshow button" ?????


I am affraid, this is something out of our control...
Only web site admins can implement changes behind "launch slideshow button"!

papkassen

unread,
Nov 10, 2010, 7:23:37 AM11/10/10
to panora...@googlegroups.com
and I made with 800 height 600, now there are running two different shows in the same time

FSup

unread,
Nov 10, 2010, 7:24:01 AM11/10/10
to panora...@googlegroups.com
Quote Tomas K☼h☼ut:

Ups - you are right - I misunderstood him :)

Tomas K☼h☼ut

unread,
Nov 10, 2010, 7:24:10 AM11/10/10
to panora...@googlegroups.com
Quote Daniela Brocca:
I see, it begin from the last page, all the scanned photos.

But what about a tag with only a name , Paris, for exemple? Or Venice? I tried and it doesn't work. I see there are numbers. Is this the size of the photos?


Daniela, from my last link example, I ommited user=....& part... And voilá! Slide show based on tag "Canary islands" from all users!

http://www.panoramio.com/wapi/template/slideshow.html?width=1200&height=900&tag=Canary%20Islands

To make it clear: parameters of slideshow (like width, heigth, user, tag etc. are delimited by & string.

FSup

unread,
Nov 10, 2010, 7:24:48 AM11/10/10
to panora...@googlegroups.com
Quote papkassen:
and I made with 800 height 600, now there are running two diffe shows in the same timerent


???
Could you please post the code?

papkassen

unread,
Nov 10, 2010, 7:25:48 AM11/10/10
to panora...@googlegroups.com
yes you are surely right, but soon is it christmas and we could ask santa claus for a gift

papkassen

unread,
Nov 10, 2010, 7:27:17 AM11/10/10
to panora...@googlegroups.com

Tomas K☼h☼ut

unread,
Nov 10, 2010, 7:30:13 AM11/10/10
to panora...@googlegroups.com
Quote papkassen:
...

and it is with jbthemilker's number


And where is the problem? Sorry, I cannot see anything wrong here.

papkassen

unread,
Nov 10, 2010, 7:30:30 AM11/10/10
to panora...@googlegroups.com
oh yes, i have two windows open at the same time for that, actually 3, so I can be in forum too and I have 23" monitor

papkassen

unread,
Nov 10, 2010, 7:31:38 AM11/10/10
to panora...@googlegroups.com
who talked about wrong ????

Tomas K☼h☼ut

unread,
Nov 10, 2010, 7:35:26 AM11/10/10
to panora...@googlegroups.com
OK, so you adjusted the size of slide show to fit on your desktop with other widnows opened... well done! That's why width and heigth parameters are here!

I thought you were complaining about that. :lol:

Nice to have 23' monitor. 8)

papkassen

unread,
Nov 10, 2010, 7:55:34 AM11/10/10
to panora...@googlegroups.com
it is good, getting my pasta, looking slideshow

Tomas K☼h☼ut

unread,
Nov 10, 2010, 8:01:28 AM11/10/10
to panora...@googlegroups.com
papkassen:
Finally, you can eat pasta using both hands! :lol:

papkassen

unread,
Nov 10, 2010, 9:20:59 AM11/10/10
to panora...@googlegroups.com
Quote Tomas K☼h☼ut:
Quote papkassen:

... how do we get it under that "launch slideshow button" ?????


I am affraid, this is something out of our control...
Only web site admins can implement changes behind "launch slideshow
button"!



Soon it is christmas, so we will ask Santa Claus

AustinMN

unread,
Nov 10, 2010, 9:22:32 AM11/10/10
to panora...@googlegroups.com
Quote Tomas K☼h☼ut:
papkassen:

Finally, you can eat pasta using both hands! :lol:


My family would say I cannot eat pasta even with two hands, fork, knife, spoon, and bib! :oops:

But at least I can use the API widget!

Austin

papkassen

unread,
Nov 10, 2010, 10:00:25 AM11/10/10
to panora...@googlegroups.com
just tried 1600 x 1200

with:

lysefjord

antarctic

Iguazu falls

nice photo trips, and fast

In the sixties I was engineer at sea, around the world several times, now it is easy to see it again in my sixties "(68)"

papkassen

unread,
Nov 10, 2010, 10:44:40 AM11/10/10
to panora...@googlegroups.com
yaaah AustinMN,

have you tried those called screws

Daniela Brocca

unread,
Nov 10, 2010, 10:46:07 AM11/10/10
to panora...@googlegroups.com
Many thanks , guys. Now I know how to have an automatic slide show from all my photos, per tags of the whole Pano and per tag for only mine. But not where to put them :lol:

Tomas K☼h☼ut

unread,
Nov 10, 2010, 10:48:26 AM11/10/10
to panora...@googlegroups.com
Daniela, maybe it is stupid and obvious hint...

:idea:
You can simply bookmark them within your internet browser!
Same way how you have bookmarked Panoramio, I think.

papkassen

unread,
Nov 10, 2010, 11:19:51 AM11/10/10
to panora...@googlegroups.com
They are on my google crome site.

But I have copied them, put them in a document, there I can find them again, copy and use

Daniela Brocca

unread,
Nov 10, 2010, 11:48:10 AM11/10/10
to panora...@googlegroups.com
Yes, I did it, I have dozen of bookmarked page of Panoramio and of course I saved the links in a document, in case someone in forum asks me. Many, many thanks to all again :D

FSup

unread,
Nov 10, 2010, 2:01:56 PM11/10/10
to panora...@googlegroups.com
If you have a website you can use iframes to include those slideshows in your page.

>From the docu:
Code:

<iframe
src="http://www.panoramio.com/wapi/template/slideshow.html?user=7&amp;width=450&amp;height=400&amp;delay=6.5"
frameborder="0" width="450" height="400" scrolling="no" marginwidth="0" marginheight="0">
</iframe>


You can also create a local HTML-page at your host which includes such iframes. If you open this page with your webbrowser they are opened like they are when the page is called from the web.

Daniela Brocca

unread,
Nov 10, 2010, 2:12:29 PM11/10/10
to panora...@googlegroups.com
To have a webpage means a knowledge I don't own :oops:

Tomas K☼h☼ut

unread,
Nov 10, 2010, 2:21:01 PM11/10/10
to panora...@googlegroups.com
One small step Daniela - and you will cross Rubicon!
FSup gave you almost all you need to create your own web page. :wink:

Draken

unread,
Nov 10, 2010, 2:29:09 PM11/10/10
to panora...@googlegroups.com
I am sure Daniela adored Julius Caesar's reference!!

Daniela Brocca

unread,
Nov 10, 2010, 2:37:08 PM11/10/10
to panora...@googlegroups.com
Oh yes, but at the time I'm sure there where no bridges, even if it should not be a real river but a torrent , and I cannot swim :oops:

papkassen

unread,
Nov 11, 2010, 2:17:38 PM11/11/10
to panora...@googlegroups.com
I think this slide show has done something to my API counter, there wasn't many views, but yesterday it run up, over 4600 views in one day, I haven't seen them all, but may be it run under another side, and counted and counted

FSup

unread,
Nov 11, 2010, 3:01:27 PM11/11/10
to panora...@googlegroups.com
As long as anyone has this slideshow open every slide is a view registered by the 'API widget'-stats. As we have some code here it is very likely that some users clicked the links and played with them so you got some extra points.

papkassen

unread,
Nov 12, 2010, 4:36:21 AM11/12/10
to panora...@googlegroups.com
I havn't been in Hong Kong and Manila since 1976, so I took a slideshow trip both places.

In Hong Kong I met names from this forum: baycrest, Hans Starkendries.

Have a daughter living i Bruxelles, took a trip there too and Antwerpen

In Antwerpen I met names as : hvbemmel, Andre Speek, Hans Starkendries

So if they feel a run on their Widget API, it was me

gordon

AustinMN

unread,
Nov 12, 2010, 10:14:14 AM11/12/10
to panora...@googlegroups.com
Indeed, I've been playing with the HTML version of the widget, and suddenly went from a few API views a day to 600 views in one day.

I think this could lead to a new kind of view count manipulation. :(

Austin

Tomas K☼h☼ut

unread,
Nov 12, 2010, 10:24:35 AM11/12/10
to panora...@googlegroups.com
Hush, hush, Austin... :wink:

There could be some improvement made by team in API visits counting. Your own visits via API (when you are logged in) should not be counted. But it could be difficult to distinguish the user using API...

Of course, even if you advertise your photos by publishing API link, it shall be counted (like any other kind of adveritising - it's only a question, how long and how much your advertising will be attractive for other people).
And I think (my opinion and speculation) that API view hits has only subtle impact on popularity measurements. 8)

papkassen

unread,
Nov 12, 2010, 11:05:25 AM11/12/10
to panora...@googlegroups.com
I think, that man should take this API count out of the total.

I have a lot of albums in Picasa, and there the slideshows have no influence on the counter

Daniela Brocca

unread,
Nov 12, 2010, 11:13:28 AM11/12/10
to panora...@googlegroups.com
I'm moving this to the new Api forum

FSup

unread,
Nov 12, 2010, 12:11:59 PM11/12/10
to panora...@googlegroups.com
Quote AustinMN:
Indeed, I've been playing with the HTML version of the widget, and suddenly went from a few API views a day to 600 views in one day.

I think this could lead to a new kind of view count manipulation. :(

Austin


Something I thought too :) People who know the widget API can score as much as they want in a short time. Without the the API they might use Opera or AddOns to their browsers (no need to destroy F5 ;)).

I will give the Team a hint, maybe they can realize an IP-based maximumcount of 100 API-views per day or something like that. But as they are very busy at the moment with other things there will be no shorttime siolution for sure.

®mene

unread,
Jan 7, 2011, 12:16:26 PM1/7/11
to panora...@googlegroups.com
Quote FSup:
Quote AustinMN:
Indeed, I've been playing with the HTML version of the widget, and suddenly went from a few API views a day to 600 views in one day.

I think this could lead to a new kind of view count manipulation. :(

Austin



I will give the Team a hint, maybe they can realize an IP-based maximumcount of 100 API-views per day or something like that. But as they are very busy at the moment with other things there will be no shorttime siolution for sure.


...Something known if anything happened in this, ah, 'issue' ?

I also started to play with the api and also recognized that 'counts will happen' :)

If i set this code in an recursively routine ... i don't like to think about the consequence ;)

cheers mene

Tomas K☼h☼ut

unread,
Jan 7, 2011, 12:50:21 PM1/7/11
to panora...@googlegroups.com
Quote ®mene:

...Something known if anything happened in this, ah, 'issue' ?

I also started to play with the api and also recognized that 'counts will happen' :)

If i set this code in an recursively routine ... i don't like to think about the consequence ;)


Yes, but why to cheat yourself? Short term benefit is clear, but what about long term?

Tomas K☼h☼ut

unread,
Oct 18, 2011, 8:38:25 AM10/18/11
to panora...@googlegroups.com
More interesting tips in QuentinUK's posts in this topic:
http://www.panoramio.com/forum/viewtopic.php?p=565649#565649

nimurastar

unread,
Dec 15, 2011, 7:14:05 AM12/15/11
to panora...@googlegroups.com
First let alone, thank you.
I made ​​a widget API is not at all. Looking at pictures of my browsing history, however, have recorded many times over the widget API.
What made ​​me better than I the widget API? Why such a thing possible?
Thankfully I...
Reply all
Reply to author
Forward
0 new messages