This method is used when the media belonging to the subscriber in the system is requested to be listed when the request is made with the Token. It is listed as speech and media details of speech. The id value of the subscriber must be entered in the “id” parameter to indicate which subscriber’s media should be listed.
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 shared in the speeches of the subscriber is returned.

GetMediaBySubscriberId Sample Code (C#)
private static IRestResponse GetMediaBySubscriberId()
{
RestClient client = new RestClient("https://api.flexxii.com");
RestRequest request = new RestRequest("api/Subscribers/GetMediaBySubscriberId", Method.GET);
request.AddHeader("Content-Type", "application/json; charset=utf-8");
request.AddParameter("id", subscriberId);
request.AddHeader("Authorization", content_type + " " + access_token);
IRestResponse response = client.Execute(request);
return response;
}
Was this helpful?
0 / 0