Skip to content

This is an enclosed class for WeChat apis. 微信公共平台api的php封装

Notifications You must be signed in to change notification settings

volunteercomputing/weixin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

huoyaxiaotu

WeChat Api

This is an enclosed class for WeChat apis.

The offical wiki is here:WeChat api

Current version supports: 1.Message api 2.General api 3.Custom Menu api

微信公共平台api

微信公共平台api的php封装

官方wiki在这里:微信公共平台api

目前版本支持: 1.消息接口 api 2.通用接口 api 3.自定义菜单 api

使用说明

api.php为自定义回复接口,menu.php为菜单操作.

关键就是不和自定义回复放在一起。因为菜单操作相关的接口有接口调用频率的限制;而自定义回复没有。

菜单一次创建,永久有效;当需要改变时才改变。

常见问题

1.出现PHP Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in D:\weixin.class.php on line 269

解决方法:出现这个问题是服务器没有开启ssl支持。请在php.ini中加入

extension=php_openssl.dll

allow_url_include = On

重启服务器即可

About

This is an enclosed class for WeChat apis. 微信公共平台api的php封装

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%