/InsertAPIQuickReply

This is a method that allows you to add a quick response of your company by making a request with the received Token. You need to make a request in json format in the body with the parameters “QuickReplyTitle”, “Answer”, “Media” and “IsActive”.

 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, a message that the registration has been made is received. When you make a request to the “GetAllQuickReply” method, you can see the record of the quick replies you added.

private static IRestResponse InsertAPIQuickReply()
            {
                RestClient client = new RestClient("https://api.flexxii.com/");
                RestRequest request = new RestRequest("api/QuickReplies/InsertAPIQuickReply", Method.POST);
                request.AddHeader("Content-Type", "application/json; charset=utf-8");
                request.AddHeader("Authorization", content_type + " " + access_token);
                request.AddJsonBody(new {  "QuickReplyTitle": "string", "Answer": "string", "Media": "string", "IsActive": true });
                IRestResponse response = client.Execute(request);
                return response;
            }

Was this helpful?

0 / 0