in case of error or unability to perform the request, the flickr API returns
an error (not an empty result).
and in case the API server is not reachable, you will get an error from HTTP
GET command.
so if those are handles correctly by the libraries that you use to interface
with the API, your application will always know if the API call was
successfull or if there was an error or problem.
so the case of "empty responses" should not happen. it's either a good
response, or no response due to an error or communication issue.
-t
----- Original Message -----
From: <dartar@...>
To: <yws-flickr@yahoogroups.com>
Sent: Wednesday, November 25, 2009 13:44
Subject: [yws-flickr] Re: I've given up... "Oops! The API key or signature
is invalid."
Hi Tristan,
> my application retries a number of times (at regular intervals) before
> giving-up.
sadly that's a very wise suggestion (see also my recent call for help here:
http://tech.groups.yahoo.com/group/yws-flickr/message/5478 )
I decided to do the same and I am now running a "check and repair" script
every 2 hours to fix all the records that are incomplete due to an empty
response. I still hope to hear from Flickr if what I experienced was just an
server slowness or we should be expect timeouts and errors on a regular
basis with a certain probability from now on.
Dario
> I still hope to hear from Flickr if what I experienced was just an server
> slowness or we should be expect timeouts and errors on a regular basis
> with a certain probability from now on.
as a rule, you should always expect timeouts and errors on a regular basis,
when using any network connection to interface with an API.
the errors and timeouts may be caused by network and connections issues, and
by unexpected server issues inside flickr (e.g. timeout between their
servers, server load issues, API temporarily disabled, flickr hiccups etc).
-t
Hi Tristan,
> my application retries a number of times (at regular intervals) before
> giving-up.
sadly that's a very wise suggestion (see also my recent call for help here:
http://tech.groups.yahoo.com/group/yws-flickr/message/5478 )
I decided to do the same and I am now running a "check and repair" script every
2 hours to fix all the records that are incomplete due to an empty response. I
still hope to hear from Flickr if what I experienced was just an server slowness
or we should be expect timeouts and errors on a regular basis with a certain
probability from now on.
Dario
Thanks - yes, that is what I have done. However, this means that whereas for photos I can run a single API call which will return every photo in a set, along with the URL to the original, and the image file type. For videos the same call will give media as "video" but not the original file format nor link to the original file. I have to run the original API call to get all items in the set, then a second call for each video to get the original download url. To get the original file type I have to look at the file headers of the original file itself, using the url extracted from the second API call :-)
It would be helpful if the API call that gets all items in the set could retrieve the same information for videos as it can for images :-p
On Wed, Nov 25, 2009 at 4:52 PM, dan_wang <dan_wang@...> wrote:
Read the article describing how to use the information returns to generate the appropriate URL to show the video as an embedded element of the web page.
--- In yws-flickr@yahoogroups.com, "barkerben" <ben@...> wrote:
>
> Hello,
>
> I've noticed that when using flickr.photosets.getPhotos, if I request:
>
> media,original_format,url_o
>
> in the extras field, then for any videos the media is listed as video, which is right, but the original_format and url_o are listed as those of the 640x480 video thumbnail flickr creates on video upload, rather than the url to and format of the original video itself.
>
> This would appear to be a bug... is it, or am I messing something?
>
> Cheers,
>
> Ben
>
Read the article describing how to use the information returns to generate the
appropriate URL to show the video as an embedded element of the web page.
http://code.flickr.com/blog/2008/05/01/videos-in-the-flickr-api/
--- In yws-flickr@yahoogroups.com, "barkerben" <ben@...> wrote:
>
> Hello,
>
> I've noticed that when using flickr.photosets.getPhotos, if I request:
>
> media,original_format,url_o
>
> in the extras field, then for any videos the media is listed as video, which
is right, but the original_format and url_o are listed as those of the 640x480
video thumbnail flickr creates on video upload, rather than the url to and
format of the original video itself.
>
> This would appear to be a bug... is it, or am I messing something?
>
> Cheers,
>
> Ben
>
--- In yws-flickr@yahoogroups.com, "Jeffrey" <jfriedl@...> wrote:
> Also, I notice that if date_posted is zero, it *is* allowed (and the
> date shows up as the 1/1/70 date one might expect). Is this the
> intended way to throw something at the far back end of the
> photostream?
Well, I guess that wasn't the intended use, because I see that setting
date_posted to zero is now the same as not setting date_posted. That makes
complete sense, but geez, would it have been so arduous to acknowledge my note
(and maybe even reply to the join-date question)?
there is a bug in the Flickr API causing no more than 4000 unique photos to
be returned by a search. I call this a bug, but I guess flickr would call
this an undocumented feature.
on Oct 23, 2009, Sam Judson wrote:
There is a basic limit of approximately 4000 unique photos returned by
theflickr.photos.search method.
If you really need more than 4000 photos then you will have to use some
other criteria (such as min/max upload date) to split the data into chunks.
----- Original Message -----
From: "mersica" <mersica@...>
To: <yws-flickr@yahoogroups.com>
Sent: Tuesday, November 24, 2009 16:09
Subject: [yws-flickr] Photo search not returning the correct photos for a
page.
When doing a photo search, I can see in the xml that there are 3037 pages
and I also see that the page I request is sent correctly, but when I search
for a page above 200 it keeps returning photos from the page 200, even
though in the xml it has the correct page number. Why is this happening?
I tested the query on the flickr search request test page and the same
problem also happening there, lots of pages exists, but I cant get them all.
When doing a photo search, I can see in the xml that there are 3037 pages and I
also see that the page I request is sent correctly, but when I search for a page
above 200 it keeps returning photos from the page 200, even though in the xml it
has the correct page number. Why is this happening?
I tested the query on the flickr search request test page and the same problem
also happening there, lots of pages exists, but I cant get them all.
Hello,
I've noticed that when using flickr.photosets.getPhotos, if I request:
media,original_format,url_o
in the extras field, then for any videos the media is listed as video, which is
right, but the original_format and url_o are listed as those of the 640x480
video thumbnail flickr creates on video upload, rather than the url to and
format of the original video itself.
This would appear to be a bug... is it, or am I messing something?
Cheers,
Ben
$f = new phpFlickr(FLICKR_KEY,FLICKR_CODE);
$f->enableCache("db",FWK_DSN);
$f->photosets_getList(FLICKR_USER,$extra,$max,$page);
Running this on my website only returns two sets. But if I run the API explorer
on your website I get all four sets.
Please advise.
Since last weekend API requests made by Group Trackr [1] give occasional empty
responses.
Right now the server isn't able to retrieve any live data.
The service has been running for almost 2 years without a glitch. I checked the
status of the server and key usage but everything looks fine.
The issue is quite urgent because it is disrupting the accurate retrieval of
daily group statistics. Any help would be appreciated.
[1] http://www.flickr.com/services/apps/72157607884561371/
my advice with the Flickr API is to retry when an unexpected error happens.
there can be lots of temporary, unexpected errors when using the flickr API
(e.g. time out, API temporarily unavailable etc).
my application retries a number of times (at regular intervals) before
giving-up.
----- Original Message -----
From: "jgdean51" <jgdean@...>
To: <yws-flickr@yahoogroups.com>
Sent: Monday, November 23, 2009 11:32
Subject: [yws-flickr] Re: I've given up... "Oops! The API key or signature
is invalid."
I've given up on this Flickr App and trying to get my nice, streaming photos
on my Word Press Blog.
This is such a mess that I can't see around it.
I do everything right and still get errors.
I'll pay someone $100 if they will spend probably less than 20 minutes with
me to coach me on how to set this up.
This is just too hard.
> I've given up on this Flickr App and trying to get my nice, streaming
> photos on my Word Press Blog.
if that's just what you wany to do, why don't you just embed the flickr
slideshow in your blog?
-t
----- Original Message -----
From: "jgdean51" <jgdean@...>
To: <yws-flickr@yahoogroups.com>
Sent: Monday, November 23, 2009 11:32
Subject: [yws-flickr] Re: I've given up... "Oops! The API key or signature
is invalid."
I've given up on this Flickr App and trying to get my nice, streaming photos
on my Word Press Blog.
This is such a mess that I can't see around it.
I do everything right and still get errors.
I'll pay someone $100 if they will spend probably less than 20 minutes with
me to coach me on how to set this up.
This is just too hard.
--- In yws-flickr@yahoogroups.com, "petrosbeli" <belisms@...> wrote:
>
> Hi,
>
> we have been developing an (currently private) web application on top of
> the FickrAPI.
>
> For a few weeks now everything has been fine. But, since Friday we had the
> problem that when new users would try to authorize their application they
> would get the error "Oops! The API key or signature is invalid."
>
> However, users that had already authorized access to their Flickr account
> could continue to use the application without any problems. Only adding
> new users stopped working...
>
> It seems that this problem comes and goes (a few minutes ago it was gone,
> could authorize access to a new account, but now it is back again).
>
> Is there something wrong with the Flickr API the last 2-3 days? Anyone
> experiencing the same?
>
> Thanks.
>
Flickr --
After reading through your terms and conditions within the API, we're confused
on section 6 "Fees and Payments."
Flickr is committed to free and open access to our APIs for commercial and
non-commercial purposes. However, providing the APIs does have real costs for
Flickr. For uses of Flickr APIs over a certain rate or for certain types of
commercial applications, Flickr reserves the right to charge fees for future use
of or access to the Flickr APIs.
We are a small company creating an application that allows users to search a
variety of services. When you state that at a certain rate, and for certain
types of commercial applications, you will charge, could you elaborate on this?
We would like to avoid a scenario in which we are unknowingly being charged to
use Flickr's api. We'd like to know before investing development cost/time in
building our app what we can expect from Flickr for using your api.
Could you please elaborate on what you mean for section 6?
I've given up on this Flickr App and trying to get my nice, streaming photos on
my Word Press Blog.
This is such a mess that I can't see around it.
I do everything right and still get errors.
I'll pay someone $100 if they will spend probably less than 20 minutes with me
to coach me on how to set this up.
This is just too hard.
--- In yws-flickr@yahoogroups.com, "petrosbeli" <belisms@...> wrote:
>
> Hi,
>
> we have been developing an (currently private) web application on top of the
FickrAPI.
>
> For a few weeks now everything has been fine. But, since Friday we had the
problem that when new users would try to authorize their application they would
get the error "Oops! The API key or signature is invalid."
>
> However, users that had already authorized access to their Flickr account
could continue to use the application without any problems. Only adding new
users stopped working...
>
> It seems that this problem comes and goes (a few minutes ago it was gone,
could authorize access to a new account, but now it is back again).
>
> Is there something wrong with the Flickr API the last 2-3 days? Anyone
experiencing the same?
>
> Thanks.
>
Hi,
we have been developing an (currently private) web application on top of the
FickrAPI.
For a few weeks now everything has been fine. But, since Friday we had the
problem that when new users would try to authorize their application they would
get the error "Oops! The API key or signature is invalid."
However, users that had already authorized access to their Flickr account could
continue to use the application without any problems. Only adding new users
stopped working...
It seems that this problem comes and goes (a few minutes ago it was gone, could
authorize access to a new account, but now it is back again).
Is there something wrong with the Flickr API the last 2-3 days? Anyone
experiencing the same?
Thanks.
i think that only the user can revoque the right for an application to
access their flickr photos.
i am not sure i understand what you want to do.
----- Original Message -----
From: "venkat_chandragiri" <venkat_chandragiri@...>
To: <yws-flickr@yahoogroups.com>
Sent: Sunday, November 22, 2009 23:24
Subject: [yws-flickr] Had issue with revoke permission through web
application using flcikrj 1.2 api
Here is the question context:
Using Flickrj 1.2 API as my development kit
I want to revoke permission from the flickr account using web application
as like as authentication.
I am successful in web authentication followed by flikr service api kit.
Issue facing,
I am not able to find the similar way to "revoke authentication" in order to
disable a particular member access on flickr features.
Can anybody suggest me on the same ?
Your help will be greatly appreciated.
--Venkat
i think the limit is the same as with uploading an image with the web
uploader.
last time i checked, the maximum was 20MB.
----- Original Message -----
From: "Santhosh.CH" <chsanthosh@...>
To: <yws-flickr@yahoogroups.com>
Sent: Sunday, November 22, 2009 23:19
Subject: [yws-flickr] Photo upload limit from api call?
Hi,
can you please let me know what is the limit of the photo size when we
upload using flick API?
Thanks,
Santhosh.CH
Here is the question context:
Using Flickrj 1.2 API as my development kit
I want to revoke permission from the flickr account using web application as
like as authentication.
I am successful in web authentication followed by flikr service api kit.
Issue facing,
I am not able to find the similar way to "revoke authentication" in order to
disable a particular member access on flickr features.
Can anybody suggest me on the same ?
Your help will be greatly appreciated.
--Venkat
The URL you specify is fine for getting information FROM flickr, but uploads don't work like that. You cannot post an image to Flickr using just a URL, you need to create a HTTP post, and include the binary of the image (along with the other information specified in the example I linked you to previous) in the body of the HTTP post.
I've never heard of VVV before, but a quick look at the docs and it doesn't appear to be something that would be possible. My recommendation would be to look for some command line tool that could do it for you. I don't know of such a command line tool, but I'm sure they exist. You could then put this tool into your workflow pipeline at the end to upload the resulting file to Flickr.
Hello Sam , i use this programming aplication http://vvvv.org , it is similar to max/msp or puredate , basicly what i want to do is taking pictures with the computer , post-processing them and upload them to flicker , so far i did a patch as far as to get the token , but now i,m stack i would like to know an example of the http string that flicker need to get as for uploading a picture form my harddisk , that is why i put the example like for getting the token i need to send this string
i'm not sure you can use the flickr api with "vvvv".
i think you would need to use a "real" programming language, like perl,
java, javascript, c++, c# etc.
and if you are not fluent in programming in any of those language, i don't
think you can use the flickr API to do anything complicated.
-t
----- Original Message -----
From: "colorsounder" <audiomedias@...>
To: <yws-flickr@yahoogroups.com>
Sent: Friday, November 20, 2009 02:58
Subject: [yws-flickr] Re: upload image example code
Hello Sam , i use this programming aplication http://vvvv.org , it is
similar to max/msp or puredate , basicly what i want to do is taking
pictures with the computer , post-processing them and upload them to flicker
, so far i did a patch as far as to get the token , but now i,m stack i
would like to know an example of the http string that flicker need to get as
for uploading a picture form my harddisk , that is why i put the example
like for getting the token i need to send this string
http://www.flickr.com/services/rest/?method=flickr.auth.getToken&api_key=(key)&f\
rob=(frob)&api_sig=(sign)
, so i wonder what sort of string should i send for uploading a picture ?
thank you
Hello Sam , i use this programming aplication http://vvvv.org , it is similar to
max/msp or puredate , basicly what i want to do is taking pictures with the
computer , post-processing them and upload them to flicker , so far i did a
patch as far as to get the token , but now i,m stack i would like to know an
example of the http string that flicker need to get as for uploading a picture
form my harddisk , that is why i put the example like for getting the token i
need to send this string
http://www.flickr.com/services/rest/?method=flickr.auth.getToken&api_key=(key)&f\
rob=(frob)&api_sig=(sign)
, so i wonder what sort of string should i send for uploading a picture ?
thank you
I didn't mean to come across as horrible - but unless you really need to there is no need to try to understand how to do all the hard stuff when someone else has already done it for you.
You haven't even mentioned what programming language you are using, and you have only just mentioned that this is even web related, so there is no way we can give you anything specific to help you know how to write the Flickr upload code.
ok i,ll try other vias to get assistant how to do it , this answer was not helpfull at all i,m a graphical programmer i just need some push to get me going with the web staff , if i knew and someone ask for it i will not say if you dont know then dont do it well ...
--- In yws-flickr@yahoogroups.com, Sam Judson <sam@...> wrote:
>
> If you don't understand how to create a multi-part MIME HTTP post then I
> recommend you don't. Try using one of the free toolkits for whatever
> programming language you are thinking of using.
>
> Sam
>
> 2009/11/19 colorsounder <audiomedias@...>
>
> >
> >
> >
> > hello thanks for the reply , i have read this already but i dont see how to
> > make the sentence sorry i,m pretty newbie , any further hint please
> > "colorsounder" <audiomedias@> wrote:
> > >
> > >
> > >
> > > hello could someone show me what should a post to upload an image like
> > for example to get the token would be :
> > >
> > >
> > >
> > http://www.flickr.com/services/rest/?method=flickr.auth.getToken&api_key=
> > (key)&frob=(frob)&api_sig=(sign)
> > >
> > > but i can find an example of what method and how to use it sorry an very
> > new to web staff following the api authoritation tut i got up to get the
> > token but from here i dont know how to keep going .
> > >
> > >
> > > thanks i,ll apreciate ;D
> > >
> >
> >
> >
>
ok i,ll try other vias to get assistant how to do it , this answer was not
helpfull at all i,m a graphical programmer i just need some push to get me going
with the web staff , if i knew and someone ask for it i will not say if you dont
know then dont do it well ...
--- In yws-flickr@yahoogroups.com, Sam Judson <sam@...> wrote:
>
> If you don't understand how to create a multi-part MIME HTTP post then I
> recommend you don't. Try using one of the free toolkits for whatever
> programming language you are thinking of using.
>
> Sam
>
> 2009/11/19 colorsounder <audiomedias@...>
>
> >
> >
> >
> > hello thanks for the reply , i have read this already but i dont see how to
> > make the sentence sorry i,m pretty newbie , any further hint please
> > --- In yws-flickr@yahoogroups.com <yws-flickr%40yahoogroups.com>,
> > "colorsounder" <audiomedias@> wrote:
> > >
> > >
> > >
> > > hello could someone show me what should a post to upload an image like
> > for example to get the token would be :
> > >
> > >
> > >
> > http://www.flickr.com/services/rest/?method=flickr.auth.getToken&api_key=
> > (key)&frob=(frob)&api_sig=(sign)
> > >
> > > but i can find an example of what method and how to use it sorry an very
> > new to web staff following the api authoritation tut i got up to get the
> > token but from here i dont know how to keep going .
> > >
> > >
> > > thanks i,ll apreciate ;D
> > >
> >
> >
> >
>
ok thanks about that ;D
--- In yws-flickr@yahoogroups.com, "Tristan Savatier" <tristan@...> wrote:
>
> tokens don't expire.
>
> you can use it from different computers, it is not linked to a particular
> client. but it is linked to your API key.
>
> please read the Flickr documentation for more infos and examples.
>
> -t
>
> ----- Original Message -----
> From: "colorsounder" <audiomedias@...>
> To: <yws-flickr@yahoogroups.com>
> Sent: Thursday, November 19, 2009 11:41
> Subject: [yws-flickr] Re: authorize Permanent permission no via website
>
>
>
> hi Sam
>
> i see so you mean that after i ask for the frob then get the token i could
> use this token all the time ? and if so that would only be from the same
> computer isent it ? i thouhgt they expire every hour or so ?
>
> thanks for your reply
>
tokens don't expire.
you can use it from different computers, it is not linked to a particular
client. but it is linked to your API key.
please read the Flickr documentation for more infos and examples.
-t
----- Original Message -----
From: "colorsounder" <audiomedias@...>
To: <yws-flickr@yahoogroups.com>
Sent: Thursday, November 19, 2009 11:41
Subject: [yws-flickr] Re: authorize Permanent permission no via website
hi Sam
i see so you mean that after i ask for the frob then get the token i could
use this token all the time ? and if so that would only be from the same
computer isent it ? i thouhgt they expire every hour or so ?
thanks for your reply
If you don't understand how to create a multi-part MIME HTTP post then I recommend you don't. Try using one of the free toolkits for whatever programming language you are thinking of using.
hello thanks for the reply , i have read this already but i dont see how to make the sentence sorry i,m pretty newbie , any further hint please
--- In yws-flickr@yahoogroups.com, "colorsounder" <audiomedias@...> wrote:
>
>
>
> hello could someone show me what should a post to upload an image like for example to get the token would be :
>
>
> http://www.flickr.com/services/rest/?method=flickr.auth.getToken&api_key=(key)&frob=(frob)&api_sig=(sign)
>
> but i can find an example of what method and how to use it sorry an very new to web staff following the api authoritation tut i got up to get the token but from here i dont know how to keep going .
>
>
> thanks i,ll apreciate ;D
>
On Thu, Nov 19, 2009 at 11:41 AM, colorsounder <audiomedias@...> wrote:
> i see so you mean that after i ask for the frob then get the token i could use
this token all the time ?
Yes.
> and if so that would only be from the same computer isent it ?
Up to you, I guess. If you have a secure way of ensuring that the
token is only accessed by the authorized user, no reason why you
couldn't transfer it to another computer.
> i thouhgt they expire every hour or so ?
No. I don't know if they ever expire.
Cheers,
Brian