# back-end API

The Mini Program also provides a series of applications in backend servers using HTTPS The requested call API, to help developers in the background to complete all kinds of digital analysis, management and query operations. Such as getAccessTokencode2Session Etc. Please refer to the API file

# access_Token

access_Token Is the Mini Program global unique background interface call credentials, call the vast majority of the background interface are required to use. Developers can use getAccessToken Interface is obtained and stored properly.

in order to access_Token Of the security,back-end API Cannot be passed directly within the Mini Program wx.request call, i.e. api.weixin.qq .com Cannot be configured as a server domain name. The developer should use the backend servergetAccessTokenObtain access_Token, and call the associated API

# Request Parameter Dxplaination

  • for GET Request, the request parameter should be QueryString The form written in the URL In.
  • for POST Request, some of the parameters need to be QueryString The form written in the URL Medium (usually only access_TokenAdditional parameters will be included in the document. URL Other parameters, if not specified, JSON The character string format is written in POST Requested body In.

# Return Parameter Dxplaination

Note: Part of the interface does not return when the API call succeeds Errcode and Errmsg, which is returned only if the call fails.