美拍视频接口(六种类型)
- $lx = $_GET['lx'];//1= 随机 2=搞笑 3=美女 4=舞蹈 5=音乐 6=男神
- if($lx ==1){
- $sj = array(13,19,27,63,460);
- $id = $sj[rand(0,4)];
- }elseif($lx==2){
- $id = '13';
- }elseif($lx==3){
- $id = '19';
- }elseif($lx==4){
- $id = '63';
- }elseif($lx==5){
- $id = '62';
- }elseif($lx==6){
- $id = '31';
- }
- $url = 'http://newapi.meipai.com/output/channels_topics_timeline.json?id='.$id.'&count=1&page='.rand(1,50);
- $da = file_get_contents($url);
- $txt = json_decode($da);
- $url = '地址:'.$txt[0]->url;
- $cover_pic = '[imgurl]'.$txt[0]->cover_pic.'[/imgurl]【换行】';
- $screen_name = '作者:'.$txt[0]->screen_name.'【换行】';
- $caption = $txt[0]->caption;
- echo $cover_pic,$url.$screen_name,$caption;exit;
文章转载自: http://www.yun24.cc
暂无评论...