예제 #1
0
 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))
     });
 }
예제 #2
0
 public static HttpRequestMessage CreateLogoutRequest()
 {
     return(new HttpRequestMessage
     {
         Content = ChevroletRequestFactory.FormUrlEncodedContentForLogout(),
         Method = HttpMethod.Post,
         RequestUri = new Uri("https://imtportal.gm.com/users/logout.html")
     });
 }
예제 #3
0
 public static HttpRequestMessage CreateLogoutRequest()
 {
     return(new HttpRequestMessage
     {
         Content = ChevroletRequestFactory.FormUrlEncodedContentForLogout(),
         Method = HttpMethod.Post,
         RequestUri = new Uri(CatalogApi.UrlConstants.ChevroletOpelGroupUserLogoutTo)
     });
 }
예제 #4
0
 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")
     });
 }