Ejemplo n.º 1
0
        public string GetAuthUrl()
        {
            frob = rtm.AuthGetFrob();
            string url = rtm.AuthCalcUrl(frob, AuthLevel.Delete);

            return(url);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize the authorization, open a URL where the user can agree
        /// the operation this plugin will perform on his/her RTM account.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String"/> indicating the frob value.
        /// </returns>
        public static string AuthInit()
        {
            string frob;

            try {
                frob = rtm.AuthGetFrob();
            } catch (RtmException e) {
                Log <RTM> .Error(AddinManager.CurrentLocalizer.GetString("Failed to initialize authentication."), e.Message);

                return("");
            }
            Services.Environment.OpenUrl(rtm.AuthCalcUrl(frob, AuthLevel.Delete));
            return(frob);
        }