Obtaining the List of Code Drafts
This API allows you to obtain all drafts (that is, temporary code templates) from a draft box. The drafts are uploaded via Weixin DevTools by development Mini Programs on third-party platforms. For more information, see Third-Party Platform.
Request Address
Request Parameters
| Parameter | Type | Required | Description |
| access_token | String | Yes | Third-party platform's token component_access_token |
Response Parameters
| Parameter | Type | Description |
| create_time | Number | The timestamp when the developer uploads the draft. |
| user_version | String | Version number. This field is defined by the developer. |
| user_desc | String | Version description. This field is defined by the developer. |
| draft_id | Number | Draft ID |
Example of returned result
Error Code
| Error Code | Description |
| -1 | The system is busy. |
| 85064 | No template is found. |