public static HttpRequestMessage CreateLoginRequest(string url, string login, string password) { return(new HttpRequestMessage { Content = ChevroletRequestFactory.FormUrlEncodedContentForLogin(login, password), Method = HttpMethod.Post, RequestUri = new Uri(string.Format("{0}/users/login.html", url)) }); }
public static HttpRequestMessage CreateLogoutRequest() { return(new HttpRequestMessage { Content = ChevroletRequestFactory.FormUrlEncodedContentForLogout(), Method = HttpMethod.Post, RequestUri = new Uri("https://imtportal.gm.com/users/logout.html") }); }
public static HttpRequestMessage CreateLogoutRequest() { return(new HttpRequestMessage { Content = ChevroletRequestFactory.FormUrlEncodedContentForLogout(), Method = HttpMethod.Post, RequestUri = new Uri(CatalogApi.UrlConstants.ChevroletOpelGroupUserLogoutTo) }); }
public static HttpRequestMessage CreateLoginRequest(string Login, string Password) { return(new HttpRequestMessage { Content = ChevroletRequestFactory.FormUrlEncodedContent(Login, Password), Method = HttpMethod.Post, RequestUri = new Uri("https://imtportal.gm.com/users/login.html") }); }