参数名称 | 参数类型 | 必填 | 默认值 | 示例值 | 备注 |
---|---|---|---|---|---|
typeId | String | 否 | 搞笑=gxmy,字谜=zmmy,成语=cymy,动物=dwmy,爱情=aqmy,灯谜=dmmy,人名=rmmy,地名=dimmy,词语=cy,带格=dgmy,用语=ry,儿童=etmy,物品=wpmy,植物=zwmy,名谜=jmmy,书报=sbmy,俗语=symy,药品=ypmy,音乐=yymy,影视=ysmy,称谓=cwmy,趣味=qtmy,精选=miyujingxuan, 脑筋急转弯=njmy,智力问答=zlmy |
<?php header('content-type:text/html;charset=utf-8'); $ch = curl_init(); $url = 'https://api.liangmlk.cn?ak=xxxx&appid=2286'; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); $res = curl_exec($ch); curl_close($ch); return json_decode($res,true);