private ConfirmationDetailsResponse GetConfirmationDetails(Confirmation conf) { var url = ApiEndpoints.CommunityBase + "/mobileconf/details/" + conf.ID + "?"; var queryString = this.GenerateConfirmationQueryParams("details"); url += queryString; var cookies = new CookieContainer(); this.Session.AddCookies(cookies); var referer = this.GenerateConfirmationURL(); var response = SteamWeb.Request(url, "GET", string.Empty, cookies, null, proxy: this.Proxy, referer: referer); if (string.IsNullOrEmpty(response)) { return(null); } var confResponse = JsonConvert.DeserializeObject <ConfirmationDetailsResponse>(response); return(confResponse); }
public bool DenyConfirmation(Confirmation conf) { return(this.SendConfirmationAjax(conf, "cancel")); }
public bool AcceptConfirmation(Confirmation conf) { return(this.SendConfirmationAjax(conf, "allow")); }