![]() |
![]() |
![]() |
Flickcurl Flickr API Manual | ![]() |
---|
Create a file ~/.flickcurl.conf
with the two
values above (API Key, Shared Secret) like this:
[flickr] api_key=0123456789abcdef0123456789abcdef secret=fedcba9876543210
Then visit the Authentication URL mentioned in the previous section (http://www.flickr.com/auth-11111111111111111) in a web browser.
Flickr will return a page that says something like:
"[APP NAME] wants to link to your Flickr account"
with more information and a big blue button that reads:
[OK, I'll ALLOW IT]
Click that button.
Flickr will return on the next page a 9-digit FROB that looks like this:
123-456-789
Switch back to the command line and run the flickcurl utility with that FROB:
$ utils/flickcurl -a 123-456-789
and the result will be that an Authentication Token (auth token) is calculated and returned.
The utils/flickcurl utility will automatically update the
~/.flickcurl.conf
configuration file with
the auth_token
field to give something like:
$ cat ~/.flickcurl.conf [flickr] auth_token=1234567-8901234567890123 api_key=0123456789abcdef0123456789abcdef secret=fedcba9876543210