Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat applet createActivityId


May 19, 2021 WeChat Mini Program Development Document


Table of contents


updatableMessage.createActivityId

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:

  • HTTPS call
  • Cloud calls

HTTPS call

The request address

GET https://api.weixin.qq.com/cgi-bin/message/wxopen/activityid/create?access_token=ACCESS_TOKEN

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials

Returns a value

Object

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 calls

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.

The interface method

openapi.updatableMessage.createActivityId
Permissions for the updatableMessage.createActivityId API need to be configured in config.json, details

Returns a value

Object

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

Abnormal

Object

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