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

string FlickrNet::Flickr::AuthGetFrob (  )  [inline]

Retrieve a temporary FROB from the Flickr service, to be used in redirecting the user to the Flickr web site for authentication. Only required for desktop authentication.

Pass the FROB to the AuthCalcUrl method to calculate the url.

                string frob = flickr.AuthGetFrob();
                string url = flickr.AuthCalcUrl(frob, AuthLevel.Read);

                // redirect the user to the url above and then wait till they have authenticated and return to the app.

                Auth auth = flickr.AuthGetToken(frob);

                // then store the auth.Token for later use.
                string token = auth.Token;


Definition at line 560 of file Flickr.cs.

                  NameValueCollection parameters = new NameValueCollection();
                  parameters.Add("method", "flickr.auth.getFrob");
                  parameters.Add("api_key", _apiKey);
                  FlickrNet.Response response = GetResponseNoCache(parameters);
                  if( response.Status == ResponseStatus.OK )
                        return response.AllElements[0].InnerText;
                        throw new FlickrException(response.Error);

Generated by  Doxygen 1.6.0   Back to index