Comments (9)
同样期待。
from wechat-php-sdk.
今天目睹了微信改版,前一秒还ok,下一秒就错了。同期待
from wechat-php-sdk.
正在看,增加了挺多接口,其实很多接口之前也一直在用,只是没有向普通账号开放。
from wechat-php-sdk.
专门注册个账号来感谢您!
希望能快些把 getNewsList() 改好~ 谢谢~~
from wechat-php-sdk.
也在关注 getNewList(),一直没搞定。是不是技术上无法解决了。
from wechat-php-sdk.
昨天晚了看了下getNewsList,不存在技术上的问题。
只是原接口地址失效,注释和文档中不能得知getNewsList 返回数据格式,不敢改
记得的朋友可以提供一下
from wechat-php-sdk.
提供什么?上面回复没看懂。
from wechat-php-sdk.
getNewsList 方法返回数据格式
from wechat-php-sdk.
看你许久没写,我就自己写了,我不是程序员,用正则拼凑的,所以写的不好,不过可以正常用,呵呵,希望大家能优化一下:
function getNewsList(){
$send_snoopy = new Snoopy;
$t = time().strval(mt_rand(100,999));
$type=10;
$send_snoopy->referer = "https://mp.weixin.qq.com/cgi-bin/appmsg?begin=0&count=10&t=media/appmsg_list&type=10&action=list&token=".$this->_token."&lang=zh_CN";
$send_snoopy->rawheaders['Cookie']= $this->cookie;
$submit = "https://mp.weixin.qq.com/cgi-bin/appmsg?begin=0&count=10&t=media/appmsg_list&type=10&action=list&token=".$this->_token."&lang=zh_CN";
$send_snoopy->fetch($submit);
$result = $send_snoopy->results;
$thehead = "wx.cgiData = "; //
$theend = "}};"; //
preg_match_all("/".$thehead."(.*)".$theend."/siU",$result,$matches); //匹配 siU表示可以换行
$matches[1][0] = $matches[1][0]."}}";
return json_decode($matches[1][0],true);
}
from wechat-php-sdk.
Related Issues (20)
- 求助一下,thinkphp5 通过vendor方式导入类库,接口配置url的时候一直提示失败 HOT 1
- 回复不了音乐消息?
- 关于public function getQRCode($scene_id,$type=0,$expire=604800)
- 创建自定义菜单报错:40017 invalid button type hint
- 怎么找不到小程序的api?
- PHP7不支持mcrypt_*函数了 HOT 2
- 无法连接多客服
- 微信订单付款通知后,不能立刻发送模板消息,怎么处理?
- 微信支付官方紧急推送关于修复XXE漏洞提示 HOT 1
- 关于wechat类文本回复的换行问题(BUG) HOT 1
- wechat-php-sdk 存在XXE漏洞
- 中文转码问题直接传第二个参数JSON_UNESCAPED_UNICODE即可 HOT 1
- 被动回复文本消息没检查最大长度(Bug)
- 自定义菜单-常量应改为小写
- [QUESTION] Where I can find the CI service?
- 企业微信里cache name不应该是appid
- 关于物流助手的相关接口是不是还没有接入?
- 升级到PHP7.4.1后,上传永久素材,curl报错http 412
- 关于tokenaccesskey
- PHP update image. Like e commerce site no image set onth choose file option but database have file name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechat-php-sdk.