TEXT 44
Untitled Guest on 25th December 2024 06:49:59 AM
  1.  static async Task SendWisperApi(string state, string agent_number)
  2.  {
  3.      try
  4.      {
  5.          string url = String.Format("/Home/CallMonitorApi");
  6.  
  7.          var client = new RestClient("192.168.0.133");
  8.          var request = new RestRequest(url, Method.Post);
  9.  
  10.  
  11.  
  12.          request.AddParameter("state", state);
  13.          request.AddParameter("agent_number", agent_number);
  14.          RestResponse response = await client.ExecuteAsync(request);
  15.     catch (Exception ex)
  16.     {
  17.         WriteLog("Failed and got error: " + ex.Message);
  18.     }
  19. }
  20.   SendWisperApi("established", e.DeviceNumber);--- establish

Hightechrobo bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.