This site tries to explain the process: http://admin.wechat.com/wiki/index.php?title=Access_token
The problem is nowhere do they tell you where to get the AppID or what exactly the secret is.Has anyone else succeeded in communicating with WeChat?
WeChat-OAuth2 0.1.2 documentation» API¶ The API is exposed via service wrappers, which provide convenient WeChat OAuth2 flow methods as well as session management. Each service type has specialized Session objects, which may be used directly. WeChat Service¶ class wechat_oauth2.
The WeChat API and SDKs (Native App SDK – JS SDK for web) allow developers to access and integrate the native functionalities of WeChat within different types of applications: Native mobile applications / APP Web-based applications powered within WeChat in-app browser (H5)
If you have a service account you will get the APP ID and APP SECRET from admin.wechat.com -> login -> function -> advanced -> developer mode -> Just under your token you will see the APP ID and APP SECRET
How to set up a WeChat Official Account with a Mainland China entity. Go to the WeChat Official Accounts Platform. Landing page URL to sign up: mp.weixin.qq.com. Choose either Service or Subscription Account. Select the right type of Official Account according to your strategy for this channel. Create a User Account.
Essentially we @ WeChat have 2 types of accounts, subscription and service. Subscription account only gives you access to the Message API which allows for receiving messages and autoresponses and allows you to broadcast to your users once a day. Subscription accounts are also grouped in a category in your contacts under subscription.
A service account gives you an APP ID and APP SECRET which allows you to generate an access token which is needed for pretty much all the other API's apart from the Message API. A service account displays in the user's contact list under the main chats in between all your other normal contacts. You can only broadcast to each of your users once a month on a service account.
If you have a service account you will get the APP ID and APP SECRET from admin.wechat.com -> login -> function -> advanced -> developer mode -> Just under your token you will see the APP ID and APP SECRET
To see what type of account you have go to admin.wechat.com -> login and then look at the top right of the screen next to your account name you will see your account name and just above that it will either say subscription account or service account.
If you want to test all the API's I recommend going to the developer sandbox environment where you get full access to all the API's: How does link with href for Line and Wechat?
Please note your number needs to be in the international format so 072 111 2233 you have to enter as +27721112233
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With