/DeleteAPISubscriberByID

This method is used when the subscribers in the system are wanted to be removed. The “Id” value of the subscriber to be deleted must be given in the “subscriberId” parameter.

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 deletion has been done is received. When you make a request to the “GetAllSubscribers” method, you will not be able to see the record of the subscriber you deleted.

DeleteAPISubscriberByID Sample Code (C#)

private static IRestResponse DeleteAPISubscriberByID()
            {
                RestClient client = new RestClient("https://api.flexxii.com");
                RestRequest request = new RestRequest("api/Subscribers/DeleteAPISubscriberByID", Method.DELETE);
                request.AddHeader("Content-Type", "application/json; charset=utf-8");
                request.AddParameter("subscriberId", subcriberId);
                request.AddHeader("Authorization", content_type + " " + access_token);

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

Was this helpful?

0 / 0