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

Auth FlickrNet::Flickr::AuthGetToken ( string  frob  )  [inline]

After the user has authenticated your application on the flickr web site call this method with the FROB (either stored from AuthGetFrob or returned in the URL from the Flickr web site) to get the users token.

frob The string containing the FROB.
A Auth object containing user and token details.

Definition at line 629 of file Flickr.cs.

                  if( _sharedSecret == null ) throw new FlickrException(0, "AuthGetToken requires signing. Please supply api key and secret.");

                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.auth.getToken");
                  parameters.Add("api_key", _apiKey);
                  parameters.Add("frob", frob);

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


Generated by  Doxygen 1.6.0   Back to index