Current location - Quotes Website - Personality signature - How many times can WeChat jssdk be requested in a day?
How many times can WeChat jssdk be requested in a day?

1. Obtain Access Token

The method of obtaining access token is introduced earlier. For details, see WeChat Public Platform Development (26) ACCESS TOKEN

2. Obtain jsapi_ticket

Before generating a signature, you must first understand jsapi_ticket. jsapi_ticket is a temporary ticket used by public accounts to call the WeChat JS interface. Under normal circumstances, the validity period of jsapi_ticket is 7200 seconds and is obtained through access_token. Since the number of api calls to obtain jsapi_ticket is very limited, frequent refreshes of jsapi_ticket will result in restricted api calls and affect their own business. Developers must cache jsapi_ticket globally in their own services.

Refer to the following document to obtain access_token (valid for 7200 seconds, developers must cache access_token globally in their own services):

Use the access_token obtained in the first step and use /cgi-bin/ ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi