public HttpRequestMessage GetVerificationRequest(SiteUserContext user) { HttpRequestMessage request = new HttpRequestMessage(); request.RequestUri = new Uri($"{user.Host}/do_like.php"); request.Method = HttpMethod.Post; string content = $"uid={user.Uid}&token={user.Token}&id={taskId}&fuid={friendId}"; request.Content = new StringContent(content, Encoding.UTF8, "application/x-www-form-urlencoded"); request.Headers.Add("X-Requested-With", "XMLHttpRequest"); return(request); }
public HttpRequestMessage GetTaskRefusalRequest(SiteUserContext user) { HttpRequestMessage request = new HttpRequestMessage(); request.RequestUri = new Uri($"{user.Host}/ajax.php"); request.Method = HttpMethod.Post; string content = $"uid={user.Uid}&token={user.Token}&hide_company={groupId}"; request.Content = new StringContent(content, Encoding.UTF8, "application/x-www-form-urlencoded"); request.Headers.Add("X-Requested-With", "XMLHttpRequest"); return(request); }
public HttpRequestMessage GetTaskRefusalRequest(SiteUserContext user) { return(null); }