## Getting Authentication Token from API Key and Secret

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 two blue buttons. Locate the one below the text:

     If you arrived at this page because you specifically asked  to connect
     to your Flickr account, click here:

      [NEXT]

Click that button and on the next page click the blue button

      [OK, I'LL AUTHORIZE IT]

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:

    $ flickcurl -a 123-456-789

and the result will be that an Authentication Token (auth token) is calculated and returned.

The 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