The website has free download sample code includes old APIs and JSAPI.
http://binsee.github.io/wechat-php-sdk/2015/%E5%85%B3%E4%BA%8E%E5%BE%AE%E4%BF%A1JSAPI%E5%88%86%E4%BA%AB%E4%B8%8D%E8%83%BD%E4%BD%BF%E7%94%A8%E7%9A%84%E7%96%91%E9%97%AE%E8%A7%A3%E5%86%B3/
For JSAPI debug using, set
1. wx.config({
debug: true,
2. For chrome, open log view by pressing ctrl + shift + j.
- Use the keyboard shortcut Command + Option + J (Mac) or Control + Shift + J (Windows/Linux).
- Select > More Tools > JavaScript Console.
Then will get Token and ticket to access it.
4. For access device via JSAPI, need to send mail to wxthings@foxmail.com to request open the authorization but not for test account. You should have real service account.
5. Compatible old version, add the code http://blog.csdn.net/snow_finland/article/details/43228839.
official wiki:
http://qydev.weixin.qq.com/wiki/index.php?title=%E5%BE%AE%E4%BF%A1JS%E6%8E%A5%E5%8F%A3
http://admin.wechat.com/wiki/index.php?title=JS_SDK_DOCUMENT (English)
沒有留言:
張貼留言