Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

Auth FlickrNet::Flickr::AuthCheckToken ( string  token  )  [inline]

Checks a authentication token with the flickr service to make sure it is still valid.

Parameters:
token The authentication token to check.
Returns:
The Auth object detailing the user for the token.

Definition at line 657 of file Flickr.cs.

            {
                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.auth.checkToken");
                  parameters.Add("api_key", _apiKey);
                  parameters.Add("auth_token", token);

                  FlickrNet.Response response = GetResponseNoCache(parameters);
                  if( response.Status == ResponseStatus.OK )
                  {
                        Auth auth = new Auth(response.AllElements[0]);
                        return auth;
                  }
                  else
                  {
                        throw new FlickrException(response.Error);
                  }

            }


Generated by  Doxygen 1.6.0   Back to index