示例#1
0
        public static string GetToken(string ClientID, string RedirectUrl)
        {
            string URL        = "https://www.pushbullet.com/authorize";
            var    parameters = new Dictionary <string, string>();

            parameters.Add("response_type", ResponseType.token.ToString());
            parameters.Add("client_id", ClientID);
            parameters.Add("redirect_uri", RedirectUrl ?? "https://loudkode.github.io/Apps/app.html");
            parameters.Add("scope", "everything");
            return(URL + Utilitiez.AsQueryString(parameters));
        }
示例#2
0
 public pUri(string ApiAction, Dictionary <string, string> Parameters) : base(APIbase + ApiAction + Utilitiez.AsQueryString(Parameters))
 {
 }