Logo Search packages:      
Sourcecode: tasque version File versions  Download package

string RtmNet::Rtm::AuthGetFrob (  )  [inline]

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

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

                string frob = Rtm.AuthGetFrob();
                string url = Rtm.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 = Rtm.AuthGetToken(frob);

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


Definition at line 363 of file Rtm.cs.

                  Hashtable parameters = new Hashtable();
                  parameters.Add("method", "rtm.auth.getFrob");

                  RtmNet.Response response = GetResponse(parameters);
                  if( response.Status == ResponseStatus.OK )
                        return response.AllElements[0].InnerText;
                        throw new RtmApiException(response.Error);

Generated by  Doxygen 1.6.0   Back to index