You aren't signed in     Sign In    Help

Flickr API / Discuss

Current Discussion

Screenshots&Illustration
Latest: 4 hours ago
Weirdness with photos.search and max_upload_date?
Latest: 7 hours ago
downloadr - A flickr image downloader
Latest: 13 hours ago
Reading XML response from IFrame
Latest: 18 hours ago
Linking to a Set on an external website?
Latest: 23 hours ago
Items per page
Latest: 2 days ago
Collections support?
Latest: 3 days ago
Uploading with Adobe AIR and JS
Latest: 4 days ago
I need a function that ...
Latest: 4 days ago
joomla plugin to load pics from groups...?
Latest: 4 days ago
New Flickr API App - Posterous.com - dead simple blogging and posting to flickr by email
Latest: 4 days ago
Sites that use Machine Tags?
Latest: 4 days ago
More...
spacer image

Use Flickr API for me... not the users (i.e. no annoying authentication step)

view profile

cpup22  Pro User  says:

Hi, I'm new to the Flickr APIs and I want to be able to have a website where it automatically loads all of the photos (or some based on a search) that are under MY flickr account. I have my api key, token, and secret key but all of the discussions I'm seeing seem to be asking a user to authenticate and then access THEIR photos. What if I want people visiting my website to view my photos... they won't know what my login information is. I also don't want them to have to create one just to view mine. Anyone out there tried this before? help!
Posted at 6:43PM, 13 May 2008 PDT ( permalink )

view photostream

cpup22  Pro User  says:

btw, I'm using flickrj. I think i need to set the Auth User somehow with my credentials... i'm exploring now :)
Posted 2 months ago. ( permalink )

view photostream

Wooble  Pro User  says:

I don't know how (or if) flickrj handles this, but all you need to do is authenticate as yourself once, save the auth token, and use that for all your subsequent calls without messing with authenticating again.
Posted 2 months ago. ( permalink )

view photostream

AlunR  Pro User  says:

Create a REST request with your username/id in it and dynamically add the tags you want to search using PHP or similar.

After that you use PHP or similar to read through the returned records and display them.
Posted 2 months ago. ( permalink )

view photostream

AlunR  Pro User  says:

Have a look at this www.flickr.com/services/api/flickr.photos.search.html
Posted 2 months ago. ( permalink )

view photostream

AlunR  Pro User  says:

api.flickr.com/services/rest/?method=flickr.photos.search...

For example
Posted 2 months ago. ( permalink )

view photostream

cpup22  Pro User  says:

Thanks... just curious how I find out what my user id is?
Posted 2 months ago. ( permalink )

view photostream

cpup22  Pro User  says:

Nevermind, I figured out how to find the NSID:

pipes.yahoo.com/pipes/pipe.info?_id=pM0AzPmn3BGSS53rBx2yXQ

wanted to share in case others aren't sure how to get it. :)
Posted 2 months ago. ( permalink )

view photostream

scubapup  Pro User  says:

theres also idgettr.com
Posted 2 months ago. ( permalink )

view photostream

cpup22  Pro User  says:

The flickr.photos.search doesn't work because I need to also upload files using my app... and since that api doesn't require authentication I don't have the privilege to upload.

Anyone else have any suggestions? I tried just logging in as myself for test purposes but I can't save the frob and continually use it. It seems to expire.
Posted 2 months ago. ( permalink )

view photostream

Silly Luis  Pro User  says:

You don't need the frob. What you have to save is the *token* you get after authenticating. Once you have the token you can use it whenever you want to make a call signed as you.
Posted 2 months ago. ( permalink )

view photostream

ChazzJazz says:

hi i am new as well, and i am failing to see the problem here,

if you set up an rss in flickr, there should be no authentication that i can see.

where do you set the authentication for your feeds.
Posted 2 months ago. ( permalink )

view photostream

Silly Luis  Pro User  says:

:You don't, unless you need to use the API to fabricate your own feed elsewhere.
Posted 2 months ago. ( permalink )

view photostream

ChazzJazz says:

so how do i feed the large images or the originals instead of the medium ones ?? :D

PS. how did u link my icon?
Originally posted 2 months ago. ( permalink )
ChazzJazz edited this topic 2 months ago.

view photostream

cpup22  Pro User  says:

Silly~ I did save my token and now I'm getting the following error:

Exception in thread "main" com.aetrion.flickr.FlickrException: 98: Invalid auth token
at com.aetrion.flickr.uploader.Uploader.upload(Uploader.java:122)

when I try to upload a dummy file. My call is:

System.out.println("nsid is: " + nsid);
Uploader uploader = new Uploader(nsid);

UploadMetaData md = new UploadMetaData();
md.setDescription("new photo");
Collection tags = new ArrayList();
tags.add("lisa");
md.setTags(tags);
byte[] dumb = null;
uploader.upload(dumb,md);

See anything else I might be missing?
Posted 2 months ago. ( permalink )

view photostream

Silly Luis  Pro User  says:

How did you obtained the token? And how do you tell FlickrJ which is the token? Anyway, if in doubt use flickr.auth.checkToken to see if your token has "write" permission.
Posted 2 months ago. ( permalink )

view photostream

cpup22  Pro User  says:

I FIGURED IT OUT!! HAHAHAHAHAHAH...

okay, :) my problem was I was using the nsid when I created the Uploader rather than my apikey.

Thanks for your quick response. Maybe this will help others :)
Posted 2 months ago. ( permalink )

view photostream

Silly Luis  Pro User  says:

: Sorry, I hadn't seen your post :-)

If you need to feed the larger images you have basically two options:

1 - Use the API to get the info and build the feed yourself
2 - Intercept the actual feed and replace the url attribute inside the media:content element by the large or original

Method no. 2 might be easier in that you can just change the size modifier of the URL to get the large size in most cases. Do note, though, that Flickr doesn't generate that size if the image is 1280 px or less, so you might be obliged to use the API to query for the URI of the original size, which you wont' get always, either.

eta: Ok, aparenttly, the feeds already include (in media:content) the biggest size that is possible to share, according to the permissions level of the account in question. So you can forget about all this.
Originally posted 2 months ago. ( permalink )
Silly Luis edited this topic 2 months ago.

view photostream

garghe | back from a fantastic Irish week  Pro User  says:

Hello, new to this group and to Flickr API Developing.
I'm building a desktop application to upload photos to flickr but I always get error 98, Invalid Auth Token.

This is the code:

//Try To Upload a Photo
System.out.println("Token Is: " + auth.getToken());
System.out.println("Permission for token: " + auth.getPermission());
com.aetrion.flickr.uploader.Uploader up = new Uploader(this.apiKey);

com.aetrion.flickr.uploader.UploadMetaData photoData = new UploadMetaData();
photoData.setDescription("Test Upload from java API");
photoData.setPublicFlag(false);
InputStream is = new BufferedInputStream(new FileInputStream("c:/Users/garghe/2500934057_9ee5e0799e_o.jpg"));
up.upload(is, photoData);

I got the tokone with the FlickrAuth Class, I have WRITE permission for this one.
Can anyone help me?
thank you :)

marco
Posted 5 weeks ago. ( permalink )

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Flickr API discussion threads
Add to My Yahoo!