[swx] flickr api keys, secrets and tokens

Aidann Bowley aidann at ukgateway.net
Wed Oct 24 11:56:16 PDT 2007


Hi there,

First, let me say I'm really impressed by SWX - it seems to be really useful 
and fairly easy to use.

A tip for those trying to get Flickr to work who are as inexperienced as me.

Obviously you need your own api key, shared secret and auth token. You'll 
probably need to edit auth.php and getToken.php in the phpFlickr library in 
the api once you've got the key and secret from Flickr, and then hit 
getToken.php in your browser to generate the auth token - the service 
explorer didn't work for me.

Then, aswell as editing line 41 in Flickr.php in the services folder with 
your new key and secret, make sure you also add the following to line 42 of 
Flickr.php so that it reads:

$this->api->setToken("your auth token here");

add appropriate token between the inverted commas. If you don't, methods 
that require authentication won't work, and those that also require 
authentication if they they're dealing with private images but otherwise 
work fine might give you misleading error messages.

Oh, also be handy to add a link to this mailing list on the official site 
somewhere (or maybe I missed it), and perhaps a forum or wiki...

Cheerio folks,

Aidann









More information about the swx mailing list