Ejemplo n.º 1
0
 public static async Task <T> PostApiWithoutAuthentication <T>(string urlService, string endpoint, string contentRequest)
 {
     try
     {
         //Create and Load Http Client
         HttpClient client = LoadHttpClient.GetHttpClient(urlService: urlService);
         //Post Request
         return(await PostApiRequest <T>(client, endpoint, contentRequest));
     }
     catch (Exception ex)
     {
         throw ex;//return error
     }
 }
Ejemplo n.º 2
0
 public AuthenticationRequest(string urlService)
 {
     _client = LoadHttpClient.GetHttpClient(urlService);
 }