zemzheng / wechatphp-sdk Goto Github PK
View Code? Open in Web Editor NEWSDK to admin.wechat.com for php
License: MIT License
SDK to admin.wechat.com for php
License: MIT License
WechatClient.php 372行
$url = "$_URL_API_ROOT/cgi-bin/qrcode/create?access_token=$access_token";
少写了self
By clide
self::getQrcodeImgUrlByTicket
通过ticket换取二维码
获取二维码ticket后,开发者可用ticket换取二维码图片。请注意,本接口无须登录态即可调用。
请求说明
HTTP GET请求(请使用https协议)
https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=TICKET
提醒:TICKET记得进行UrlEncode
public static function getQrcodeImgUrlByTicket( $ticket ){
358 $ticket = urlencode( $ticket );
359 return self::$_URL_API_ROOT . "/cgi-bin/showqrcode?ticket=$ticket";
360 }
根据ticket拼二维码url, 文档的地址 域名是mp,而不是api
一些手误的 $mid 变量混杂在 WeChatClient 中。
写错:
moveUserById
getGroupidByUserid
写多:
sendMusic
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.