It is a method that allows you to add a link to 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 “Url” (Url to be Directed), “Description” and “ImageUrl” (Image Url).

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 “GetAllLinks” method, you can see the record of the link you have added.

InsertAPILink Sample Code (C#)

private static IRestResponse InsertAPILink()
                RestClient client = new RestClient("https://api.flexxii.com");
                RestRequest request = new RestRequest("api/Links/InsertAPILink", Method.POST);
                request.AddHeader("Content-Type", "application/json; charset=utf-8");
                request.AddHeader("Authorization", content_type + " " + access_token);
                request.AddJsonBody(new {   "Url": "Test","Description": "Test","ImageUrl": "Test" });
                IRestResponse response = client.Execute(request);
                return response;

Was this helpful?

0 / 0