When the request is made with the received Token, this method is used when it is requested to list the media belonging to the conversation in the system. In order to indicate which media of the speech should be listed in the “id” parameter, the id value of the conversation should be entered.

Authorization header should be entered as “token_type” value returned as a result of token request, space character, “Access_token” value.

As a result of the request, you will see that the information of the media in the conversations is returned.

private static IRestResponse GetMediaByConversationId()
                RestClient client = new RestClient("https://api.flexxii.com/");
                RestRequest request = new RestRequest("api/Inbox/GetMediaByConversationId", Method.GET);
                request.AddHeader("Content-Type", "application/json; charset=utf-8");
                request.AddParameter("id", conversationId);
                request.AddHeader("Authorization", content_type + " " + access_token);

                IRestResponse response = client.Execute(request);
                return response;

Was this helpful?

0 / 0