This API should be called on the server side and cannot be called directly on the client side (Mini Program, web page, APP, etc.). For details, please refer to API Call Guide.
API English Name: developerGetPublishedDrama
Developers can use this API to query short dramas that have been set to be published via the Short Drama Publishing Configuration API.
1. Call Method
HTTPS Call
POST https://api.weixin.qq.com/wxadrama/developergetpublisheddrama?access_token=ACCESS_TOKEN
Cloud Call
- This API does not support cloud call.
Third-party Call
-
This API supports third-party platforms on behalf of Merchant call.
-
The permission set ID of this API is: 157
-
After the service provider obtains one of the permission set authorizations, it can use authorizer_access_token to call on behalf of Merchant, for details please refer to Third-party Call documentation.
2. Request Parameters
Query Parameters Query String Parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | string | Yes | ACCESS_TOKEN | API call credential, you can use access_token, authorizer_access_token |
Request Body Request Payload
None
3. Response Parameters
Response Body Response Payload
| Parameter | Type | Description |
|---|---|---|
| list | objarray | list |
| errcode | number | Error Code |
| errmsg | string | Error Message |
Res.list(Array) Object Payload
list
| Parameter | Type | Description |
|---|---|---|
| src_appid | string | The AppID of the submitter Mini Program |
| drama_id | string | The ID of the drama submitted for review |
| publish_time | number | Publishing timestamp (in seconds) |
4. Notes
No special notes for this API
5. Code Example
Request Example
POST https://api.weixin.qq.com/wxadrama/developergetpublisheddrama?access_token=ACCESS_TOKEN
Response Example
{
"list":[
{"src_appid":"example_appid","drama_id":"example_drama_id_1","publish_time":1744626100},
{"src_appid":"example_appid","drama_id":"example_drama_id_2","publish_time":1744626200},
]
"errcode":0,
"errmsg":"ok"
}
6. Error Codes
The following is the error code list of this API, other error codes can refer to Common Error Codes; When encountering errors in calling the API, you can use the official API Diagnostic Tool to assist in locating and analyzing problems.
| Error Code | Error Description |
|---|---|
| -1 | System error. Please try again. |
| 0 | Success |
| 1 | Does not exist |
| 2 | Invalid parameter |
| 21000 | This drama is not authorized for playback. Please authorize it via the backend API. |
| 21001 | The encrypted sessionkey for the user does not exist. |
| 21002 | The Merchant's encrypted package is not Base64 encoded. |
| 21003 | Failed to decrypt the Merchant's encrypted package. Please ensure that you encrypted it according to the encryption scheme specified in the integration documentation, or that the `sessionkey` is the latest one for the current user. |
| 21004 | The plaintext before Merchant encryption is not in a valid JSON format, or the field types are incorrect. Please check according to the integration documentation. |
| 21005 | The required parameter values in the Merchant encryption (`openid`, `src_appid`, and `drama_id`) are empty. |
| 21006 | The parameters passed to the player do not match the parameter values in the Merchant's encrypted package. |
| 21007 | The `openid` in the encrypted package is invalid. |
| 21008 | 21008: The developer has not enabled pre-fetching. |
| 21009 | 21009: Insufficient Merchant traffic. |
7. Applicable Scope
The callable account types for this API are not yet clear, or are determined by the calling parameters in business. Please refer to the actual calling situation.