Appid, appsecret, and access in WeChat public account development

Source: Internet
Author: User
Many netizens who have been in contact with the public account for the first time will ask the following questions: Can I find the appid and appsecret for the subscription number? No AppId or AppSecret is available for developers. How can this problem be solved? Where do I need to use access_token? Original IDgh_116745c59179 pocketccsu enable development mode without appid and

Many netizens who have been in contact with the public account for the first time will ask the following questions: Can I find the appid and appsecret for the subscription number? No AppId or AppSecret is available for developers. How can this problem be solved? Where do I need to use access_token? Original ID gh_116745c59179 pocketccsu enable development mode without appid and

Many netizens who have been in contact with the public account for the first time will ask the following questions:

  • Why can't I find the appid and appsecret for the subscription number?
  • No AppId or AppSecret is available for developers. How can this problem be solved?
  • Where do I need to use access_token?
  • The original ID gh_116745c59179 pocketccsu enables the development mode without the appid and appsecret. If you want to further develop the SDK, please contact the Administrator. Thank you!

These problems are to be associated, and Yu explained them together.

After successfully applying for a subscription number, the interface url and token are configured. After verification, you can become a developer, but you do not have the appid and appsecret. You must pass the authentication before you can obtain the token. Verification and authentication are totally different. For more information, see what is the difference between Public Account Verification and authentication ?. I think the official documentation provides instructions on these issues, but the uidesign of the Public Account Management backend is not good enough, resulting in the confusion of many beginners.

AppID and AppSecret are used to obtain access_token. A public account corresponds to an account on the server. In development mode, not only can the server send messages and events to your server, but your server can also manipulate your account on the server, then an account password is required. access_token is equivalent to this password. AppID and AppSecret must be kept confidential. Do not tell third-party service providers unless they do.

Access_token is valid for 7200 seconds. You can use the program to make a cache and store it in the database. The next time you need to generate the access_token, you must first determine whether the database is saved within two hours, if yes, it will be used directly. If not, it will be retrieved from the server again. However, the interface for obtaining access_token is limited to 2000 calls every day. Generally, the debugging program should be enough and can be called directly without caching. Next time, Yu will introduce wechat-php-sdk, a good public platform php development kit, and provide code for obtaining access_token.

Certificate -----------------------------------------------------------------------------------------------------------------------------------------
Fish and fish public platform development (http://blog.csdn.net/yidongapi)Thank you!

Welcome to the public account weixintizi, my personal website: ladder

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.