Deletes a specified episode from an episode list.
Usage notes
You cannot use this operation on empty episode lists. For information about how to add episodes to an episode list, see AddShowIntoShowList.
QPS limit
You can send up to 10 requests per second to call this operation by using your Alibaba Cloud account. If the number of the calls per second exceeds the limit, throttling is triggered. This may affect your business. We recommend that you take note of the limit when you call this operation. For more information, see QPS limit on an API operation in ApsaraVideo Live.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | RemoveShowFromShowList |
The operation that you want to perform. Set the value to RemoveShowFromShowList. |
CasterId | String | Yes | LIVEPRODUCER_POST-cn-0pp1czt**** |
The ID of the production studio instance.
Note The value displayed in the Name column for an instance on the Production Studio Management
page is the ID of the instance.
|
ShowId | String | Yes | a2b8e671-2fe5-4642-a2ec-bf93880e**** |
The ID of the episode. Note You can obtain the episode ID by checking the value of the response parameter ShowId
of the AddShowIntoShowList operation.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
The ID of the request. |
ShowId | String | a2b8e671-2fe5-4642-a2ec-bf93880e**** |
The ID of the episode. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=RemoveShowFromShowList
&CasterId=LIVEPRODUCER_POST-cn-0pp1czt****
&ShowId=a2b8e671-2fe5-4642-a2ec-bf93880e****
&<Common request parameters>
Sample success responses
XML
format
<RemoveShowFromShowListResponse>
<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
<ShowId>a2b8e671-2fe5-4642-a2ec-bf93880e****</ShowId>
</RemoveShowFromShowListResponse>
JSON
format
{"RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8","ShowId":"a2b8e671-2fe5-4642-a2ec-bf93880e****"}
Error codes
For a list of error codes, visit the API Error Center.
Sample code
public static DefaultAcsClient initClient(String accessKeyId, String accessKeySecret) throws ClientException {
String regionId = "cn-shanghai";
DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
DefaultAcsClient client = new DefaultAcsClient(profile);
return client;
}
private static void removeShowFromShowList(DefaultAcsClient client, String casterId, String showId) throws ClientException {
CommonRequest removeShowFromShowListFromShowList = new CommonRequest();
removeShowFromShowListFromShowList.setSysDomain("live.aliyuncs.com");
removeShowFromShowListFromShowList.setSysVersion("2016-11-01");
removeShowFromShowListFromShowList.setSysAction("RemoveShowFromShowList");
removeShowFromShowListFromShowList.putQueryParameter("ShowId", showId);
removeShowFromShowListFromShowList.putQueryParameter("CasterId", casterId);
CommonResponse removeShowFromShowListFromShowListResponse = client.getCommonResponse(removeShowFromShowListFromShowList);
System.out.println("removeShowFromShowListFromShowListResponse:" + JSON.toJSONString(removeShowFromShowListFromShowListResponse));
}
public void removeShow() throws ClientException {
String showId = "xxx";
DefaultAcsClient client = initClient(ACCESS_KEY_ID, ACCESS_KEY_SECRET);
removeShowFromShowList(client, testCasterId, showId);
}