protected override Dictionary <string, string> GetParameters(string applicationKey, string signature, string callBackURL, string dataName, string dataValue) { Dictionary <string, string> parameters = CreateParameters(applicationKey, signature, callBackURL, dataName, dataValue); parameters.Add("background", Convert.ToInt32(IncludeBackground).ToString()); parameters.Add("pagesize", PageSize.ToString().ToUpper()); parameters.Add("orientation", Orientation.ToString()); parameters.Add("templateid", TemplateId); parameters.Add("customwatermarkid", CustomWaterMarkId); parameters.Add("includelinks", Convert.ToInt32(IncludeLinks).ToString()); parameters.Add("includeoutline", Convert.ToInt32(IncludeOutline).ToString()); parameters.Add("title", Title); parameters.Add("coverurl", CoverURL); parameters.Add("mleft", MarginLeft.ToString()); parameters.Add("mright", MarginRight.ToString()); parameters.Add("mtop", MarginTop.ToString()); parameters.Add("mbottom", MarginBottom.ToString()); parameters.Add("delay", Delay.ToString()); parameters.Add("requestmobileversion", Convert.ToInt32(RequestAs).ToString()); parameters.Add("quality", Quality.ToString()); parameters.Add("target", TargetElement); parameters.Add("hide", HideElement); parameters.Add("waitfor", WaitForElement); parameters.Add("noads", Convert.ToInt32(NoAds).ToString()); parameters.Add("post", post); parameters.Add("bwidth", BrowserWidth.ToString()); parameters.Add("width", PageWidth.ToString()); parameters.Add("height", PageHeight.ToString()); parameters.Add("tvars", templateVariables); parameters.Add("mergeid", MergeId); parameters.Add("address", Address); parameters.Add("nonotify", Convert.ToInt32(NoCookieNotifications).ToString()); parameters.Add("media", CSSMediaType.ToString().ToLower()); parameters.Add("password", Password); return(parameters); }
internal override string GetSignatureString(string applicationSecret, string callBackURL, string url) { string urlParam = string.Empty; if (!string.IsNullOrEmpty(url)) { urlParam = url + "|"; } string callBackURLParam = string.Empty; if (!string.IsNullOrEmpty(callBackURL)) { callBackURLParam = callBackURL; } return(applicationSecret + "|" + urlParam + callBackURLParam + "|" + CustomId + "|" + Convert.ToInt32(IncludeBackground) + "|" + PageSize.ToString().ToUpper() + "|" + Orientation + "|" + CustomWaterMarkId + "|" + Convert.ToInt32(IncludeLinks) + "|" + Convert.ToInt32(IncludeOutline) + "|" + Title + "|" + CoverURL + "|" + MarginTop + "|" + MarginLeft + "|" + MarginBottom + "|" + MarginRight + "|" + Delay + "|" + (int)RequestAs + "|" + ConvertCountryToString(Country) + "|" + Quality + "|" + TemplateId + "|" + HideElement + "|" + TargetElement + "|" + ExportURL + "|" + WaitForElement + "|" + EncryptionKey + "|" + Convert.ToInt32(NoAds) + "|" + post + "|" + BrowserWidth + "|" + PageHeight + "|" + PageWidth + "|" + templateVariables + "|" + Proxy + "|" + MergeId + "|" + Address + "|" + Convert.ToInt32(NoCookieNotifications) + "|" + CSSMediaType.ToString().ToLower() + "|" + Password); }