| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 | <?phpnamespace Cas\Dao;/** *  * 微信公众平台接口 * @author lishumingoo@gmail.com */class WeixinApi {		/**	 *	 * 创建二维码ticket接口	 * @var string	 */	static public $create_ticket_api = "https://api.weixin.qq.com/cgi-bin/qrcode/create";		/**	 *	 * 通过ticket换取二维码接口	 * @var string	 */	static public $exchange_qrcode_api = "https://mp.weixin.qq.com/cgi-bin/showqrcode";		/**	 *	 * 二维码有效时间	 * @var string	 */	static public $expire_seconds = 1800;		/**	 * 	 * 创建分组	 * http请求方式: POST	 * @var string	 */	static public $create_group = "https://api.weixin.qq.com/cgi-bin/groups/create";		/**	 *	 * 查询所有分组	 * http请求方式: GET	 * @var string	 */	static public $search_all_groups = "https://api.weixin.qq.com/cgi-bin/groups/get";		/**	 * 	 * 查询用户所在分组	 * http请求方式: POST	 * @var string	 */	static public $search_member_groupid = "https://api.weixin.qq.com/cgi-bin/groups/getid";		/**	 * 	 * 修改分组名	 * http请求方式: POST	 * @var string	 */	static public $update_group_name = "https://api.weixin.qq.com/cgi-bin/groups/update";		/**	 * 	 * 移动用户分组	 * http请求方式: POST	 * @var string	 */	static public $update_member_group = "https://api.weixin.qq.com/cgi-bin/groups/members/update";		/**	 * 	 * 获取用户基本信息	 * http请求方式: GET	 * @var string	 */	static public $get_user_info = "https://api.weixin.qq.com/cgi-bin/user/info";		/**	 * 	 * 获取关注者列表	 * http请求方式: GET	 * @var string	 */	static public $gets_openids_list = "https://api.weixin.qq.com/cgi-bin/user/get";		/**	 * 	 * 自定义菜单创建接口	 * http请求方式:POST	 * @var string	 */	static public $create_menu = "https://api.weixin.qq.com/cgi-bin/menu/create";		/**	 * 	 * 删除自定义菜单接口	 * @var string	 */	static public $delete_menu = "https://api.weixin.qq.com/cgi-bin/menu/delete";		/**	 * 	 * 上传多媒体文件	 * http请求方式: POST/FORM	 * @var string	 */	static public $mediaUpload = "http://file.api.weixin.qq.com/cgi-bin/media/upload";		/**	 * 	 * 发送客服消息	 * http请求方式: POST	 * @var string	 */	static public $sendMessage = "https://api.weixin.qq.com/cgi-bin/message/custom/send";		/**	 * 	 * 模板消息	 * http请求方式:POST	 * @var string	 */	static public $templateSend = "https://api.weixin.qq.com/cgi-bin/message/template/send";		/**	 * 	 * 上传图文消息素材	 * http请求方式:POST	 * @var string	 */	static public $uploadNews = "https://api.weixin.qq.com/cgi-bin/media/uploadnews";		/**	 * 分组群发消息	 * http请求方式: POST	 * @var string	 */	static public $sendMsgByGroup = "https://api.weixin.qq.com/cgi-bin/message/mass/sendall";		/**	 * openid列表群发消息	 * http请求方式: POST	 * @var string	 */	static public $sendMsgByOpenids = "https://api.weixin.qq.com/cgi-bin/message/mass/send";}
 |