您好,登錄后才能下訂單哦!
這篇文章主要介紹“貓眼電影小程序api的實(shí)現(xiàn)方法”,在日常操作中,相信很多人在貓眼電影小程序api的實(shí)現(xiàn)方法問題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”貓眼電影小程序api的實(shí)現(xiàn)方法”的疑惑有所幫助!接下來,請(qǐng)跟著小編一起來學(xué)習(xí)吧!
查詢出首頁電影列表
http://m.maoyan.com/movie/list.json?type=hot&offset=0&limit=1000
request :
type=hot 類型
offset : 數(shù)據(jù)開始位置
limit :偏移量
response :
<pre>
{
"control": {
"expires": 1800
},
"status": 0,
"data": {
"hasNext": true,
"movies": [
{
"late": true,
"cnms": 31,
"sn": 436,
"showDate": "",
"dur": 115,
"img": "http://p0.meituan.net/165.220/movie/7f32684e28253f39fe2002868a1f3c95373851.jpg",
"sc": 9.1,
"ver": "3D/IMAX 3D",
"rt": "本周二上映",
"nm": "末日崩塌",
"scm": "史無前例超級(jí)地震撕裂一切",
"imax": true,
"snum": 20129,
"src": "美國",
"pn": 74,
"preSale": 0,
"vd": "",
"dir": "布拉德·佩頓",
"star": "巨石強(qiáng)森,等",
"cat": "劇情,動(dòng)作,驚悚",
"wish": 65386,
"3d": true,
"time": "",
"id": 246363
}
]
}
}
查出電影詳情(包含評(píng)論)
http://m.maoyan.com/movie/xxxx.json
request:
這里直接在將xxxx換成movieid 例子 246363.json
加載更多評(píng)論
http://m.maoyan.com/comments.json?movieid=246363&limit=5&offset=5
request
movieid : 電影id
limit : 同上
offset :同上
response
{
"control": {
"expires": 300
},
"status": 0,
"data": {
"CommentResponseModel": {
"total": 5147,
"cmts": [
{
"nick": "ToyoGu李學(xué)棟",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p1.meituan.net/avatar/15beaf1aafc1571890808171618e552741843.jpg",
"userId": 62209126,
"score": 5,
"id": 17178527,
"content": "不錯(cuò),好看,",
"time": "2015-06-05 00:20"
},
{
"nick": "死生成說",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p0.meituan.net/avatar/__47448219__1684116.jpg",
"userId": 15946769,
"score": 5,
"id": 17178526,
"content": "VIP很爽的",
"time": "2015-06-05 00:20"
},
{
"nick": "彩虹天邊的雨云",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p0.meituan.net/movie/__40465654__9539763.png",
"userId": 137865391,
"score": 4,
"id": 17178518,
"content": "場(chǎng)面震撼,銜接完美,美國式英雄主義,主角家不死光環(huán),但是結(jié)尾有點(diǎn)簡(jiǎn)潔普通點(diǎn)",
"time": "2015-06-05 00:20"
},
{
"nick": "春春的嘛",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p1.meituan.net/avatar/a3ad3970104ede947f65d7a2d5685cdb12829.jpg",
"userId": 1698060,
"score": 4,
"id": 17178511,
"content": "強(qiáng)老大的電影要支持,災(zāi)難效果比之前幾部災(zāi)難片好的多,強(qiáng)老大女兒身材棒棒噠!",
"time": "2015-06-05 00:20"
},
{
"nick": "XxV543764616",
"approve": 0,
"oppose": 0,
"reply": 0,
"avatarurl": "http://p0.meituan.net/movie/__40465654__9539763.png",
"userId": 201943883,
"score": 5,
"id": 17178494,
"content": "不錯(cuò)啊,好幾年沒看災(zāi)難片了,感覺有點(diǎn)像2010",
"time": "2015-06-05 00:20"
}
]
},
"hasNext": true,
"movieid": 246363,
"offset": 5,
"limit": 5
}
}
查出影院
http://m.maoyan.com/cinemas.json
貓眼的服務(wù)器會(huì)根據(jù)你的ip段加載出你本地的影院
查詢出影院詳情
http://m.maoyan.com/showtime/wrap.json?cinemaid=11533&movieid=
request
cinemaid : 影院id
movieid : 電影id
選座
http://m.maoyan.com/show/seats?showId=76304&showDate=2015-06-05
到此,關(guān)于“貓眼電影小程序api的實(shí)現(xiàn)方法”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。