May 19, 2021 WeChat Mini Program Development Document
This interface should be called on the server side, as detailed in the Service Side API.
This interface supports cloud calls. Developer tool version required . . . 1.02.1904090 (latest stable download)
wx-server-sdk >= 0.4.0
Create an update for shared activity_id. See News Feed for more information.
How to call:
GET https://api.weixin.qq.com/cgi-bin/message/wxopen/activityid/create?access_token=ACCESS_TOKEN
Property | Type | The default | Required | Description |
---|---|---|---|---|
access_token | string | Is | The interface calls the credentials |
The returned JSON packet
Property | Type | Description |
---|---|---|
activity_id | string | The ID of the News Feed |
expiration_time | number | activity_id timestamp for the new . Expires after 24 hours by default. |
errcode | number | Error code |
The legal value of errcode
Value | Description | The lowest version |
---|---|---|
0 | The request was successful | |
-1 | The system is busy. Please ask the developer to try again later | |
42001 | access_token expires |
Cloud call is the ability provided by the small program Cloud Development to call WeChat open interfaces in cloud functions and need to be used in cloud functions via wx-server-sdk.
openapi.updatableMessage.createActivityId
Permissions for the updatableMessage.createActivityId API need to be configured in config.json, details
The returned JSON packet
Property | Type | Description |
---|---|---|
activityId | string | The ID of the News Feed |
expirationTime | number | activity_id timestamp for the new . Expires after 24 hours by default. |
errCode | number | Error code |
The legal value of errCode
Value | Description | The lowest version |
---|---|---|
0 | Success |
The exception thrown
Property | Type | Description |
---|---|---|
errCode | number | Error code |
The legal value of errCode
Value | Description | The lowest version |
---|---|---|
-1 | The system is busy. Please ask the developer to try again later | |
42001 | access_token expires |