开发者社区> 问答> 正文

Invalid methoddingtalk.corp.message.corpconversation.asyncsend only support https call

调企业会话的接口,php的方式,用的是下载的包
$c = new DingTalkClient;
$req = new CorpMessageCorpconversationAsyncsendRequest;
$req ->setMsgtype( "oa" );
$req ->setAgentId( "111111" );
$req ->setUseridList( "22222222" );
$req ->setDeptIdList( "" );
$req ->setToAllUser( "false" );
$req ->setMsgcontent( '{"message_url": "http://dingtalk.com","head": {"bgcolor": "FFBBBBBB","text": "头部标题"},"body": {"title": "正文标题","form": [{"key": "姓名:","value": "张三"},{"key": "爱好:","value": "打球、听音乐"}],"rich": {"num": "15.6","unit": "元"},"content": "大段文本大段文本大段文本大段文本大段文本大段文本大段文本大段文本大段文本大段文本大段文本大段文本","image": "@lADOADmaWMzazQKA","file_count": "3","author": "李四 "}}' );
$resp = $c ->execute( $req , "33333" ); 代码这样写有问题吗?

展开
收起
neemar 2017-07-01 17:47:29 2765 0
2 条回答
写回答
取消 提交回答
  • ReInvalid methoddingtalk.corp.message.corpconversation.asyncsend only support https call
    请问楼主  这个问题有没有解决啊  这个错误是什么意思
    2017-07-18 13:55:51
    赞同 展开评论 打赏
  • ReInvalid methoddingtalk.corp.message.corpconversation.asyncsend only support https call
    错误代码是22

    ["code"]=> string(2) "22" ["msg"]=> string(87) "Invalid method:dingtalk.corp.message.corpconversation.asyncsend only support https call" ["request_id"]=> string(12) "iv1ex09xk7uv"
    2017-07-01 17:48:38
    赞同 展开评论 打赏
问答分类:
PHP
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Scaling Spark applications by connecting code to resource consumption 立即下载
Lies-And-Damn-Lies-Getting-Past-The-Hype-Of-Endpoint-Security-Solutions 立即下载
Well-That-Escalated-Quickly-How-Abusing-The-Docker-API-Led-To-Remote-Code-Execution-Same-Origin-Bypass-And-Persistence 立即下载