1.http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login
申請測試帳號:
配置信息
![]()
2.獲取token
http://mp.weixin.qq.com/wiki/11/0e4b294685f817b95cbed85ba5e82b8f.html
![]()
獲取成功會返回access_token字段
注意這個接口測試是有限制的
3配置好信息就可以到服務器上的文件裏引入微信sdk來進行微信開發了
https://github.com/dodgepudding/wechat-php-sdk/blob/master/wechat.class.php
這裏的sdk比較不錯!當然也有composer包!
4.這裏編輯一個菜單
![]()
運行文件:
![]()
5.打開公衆號測試就可以看到菜單了