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)); }
public pUri(string ApiAction, Dictionary <string, string> Parameters) : base(APIbase + ApiAction + Utilitiez.AsQueryString(Parameters)) { }