public void GetQueueDetails(QueueInfo queue) { try { var test = routingApi.GetRoutingQueue(queue.Id); AddLog(" reult: "); Dictionary <String, String> headerParams = new Dictionary <String, String>(); headerParams.Add("Authorization", "bearer " + Configuration.Default.AccessToken); headerParams.Add("Content-Type", "application/json"); //var result = Configuration.Default.ApiClient.CallApi($"https://api.mypurecloud.ie/api/v2/routing/queues", RestSharp.Method.GET, null, null, headerParams, null, null, null, "application/json"); var api = new ApiClient(); var result = api.CallApi($"https://api.mypurecloud.ie/api/v2/routing/queues", RestSharp.Method.GET, null, null, headerParams, null, null, null, "application/json"); AddLog(" result: " + result.ToString()); } catch (Exception ex) { AddLog("Exception " + ex.Message); } }