Skip to content

Commit

Permalink
Fixing Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluisgomez committed May 16, 2024
1 parent 3b9c130 commit 6400c5c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3407,19 +3407,17 @@ private HttpRequest buildListTranscriptionsRequest(
Map<String, SimpleEntry<Object, Boolean>> templateParameters = new HashMap<>();
templateParameters.put("accountId",
new SimpleEntry<Object, Boolean>(accountId, false));
templateParameters.put("callId",
new SimpleEntry<Object, Boolean>(callId, false));
ApiHelper.appendUrlWithTemplateParameters(queryBuilder, templateParameters);

//load all query parameters
Map<String, Object> queryParameters = new HashMap<>();
queryParameters.put("callId", callId);

//load all headers for the outgoing API request
Headers headers = new Headers();
headers.add("user-agent", BaseController.userAgent);
headers.add("accept", "application/json");

//prepare and invoke the API call request to fetch the response
HttpRequest request = getClientInstance().get(queryBuilder, headers, queryParameters,
HttpRequest request = getClientInstance().get(queryBuilder, headers, null,
null);

// Invoke the callback before request if its not null
Expand Down

0 comments on commit 6400c5c

Please sign in to comment.