這篇文章主要講解了“Python怎么實(shí)現(xiàn)API電影場(chǎng)次查詢”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Python怎么實(shí)現(xiàn)API電影場(chǎng)次查詢”吧!
URL : GET /movies/
a. 查看成功響應(yīng)信息
HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: application/json Vary: Accept [ { "movie_base_id": 1, "movie_name": "5月天諾亞方舟", "time": "2013-09-19", "star": 8.8, "vision": "3D", "ellipsis": "Mayday nowhere 3D", "type": "科幻,災(zāi)難,動(dòng)作", "pic": "image/5月天諾亞方舟_pic.jpg", "ellipsis_length": 17 }, { "movie_base_id": 2, "movie_name": "厲鬼將映", "time": "2008-10-30", "star": 9.1, "vision": "", "ellipsis": "??????????? ???????????", "type": "動(dòng)畫,動(dòng)作,冒險(xiǎn)", "pic": "image/厲鬼將映_pic.jpg", "ellipsis_length": 23 }, ......
b. 響應(yīng)參數(shù)說明
nametypevaluemovie_base_idint電影IDmovie_namestring電影名timestring上映時(shí)間starstring評(píng)分visionstring維度ellipsisstring縮寫typestring類型picstring圖片ellipsis_lengthint縮寫長(zhǎng)度
Get movies/movie_id
a. 查看成功響應(yīng)信息
HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: application/json Vary: Accept [ { "movie_detail_id": 10, "movie_base_id": 1, "movie_name": "5月天諾亞方舟", "time": "2013-09-19", "star": 9.0, "type": "紀(jì)錄片,音樂", "vision": "3D", "ellipsis": "Mayday nowhere 3D", "ellipsis_length": 17, "duration": "114", "introduction": "2011年,首部華人3D音樂電影《五月天追夢(mèng)3DNA》公映并受到影迷熱捧,兩年后的新作《諾亞方舟》除了仍采用3D技術(shù)拍攝,影片將重現(xiàn)五月天演唱會(huì)的狂歡畫面,滿場(chǎng)歌迷手持藍(lán)色熒光棒,仿佛置身藍(lán)色海洋,更有歌迷激動(dòng)落淚,讓人身臨其境體驗(yàn)到五月天現(xiàn)場(chǎng)演唱的魅力與氛圍。該片隨著五月天諾亞方舟世界巡回演唱會(huì)重生場(chǎng)的舉行而展開拍攝,相信音樂表示,歌迷的感動(dòng)以及過去兩年的經(jīng)歷,也透過鏡頭記錄在畫面里面,希望歌迷可以通過電影重溫感動(dòng)。", "timg": "image/5月天諾亞方舟_timg.jpg", "pic": "image/5月天諾亞方舟_pic.jpg", "stills1": "image/5月天諾亞方舟_stills1.jpg", "stills2": "image/5月天諾亞方舟_stills2.jpg", "stills3": "image/5月天諾亞方舟_stills3.jpg", "stills4": "image/5月天諾亞方舟_stills4.jpg" } ]
b. 請(qǐng)求參數(shù)說明
nametypevaluemovie_idint電影ID
c. 響應(yīng)參數(shù)說明
nametypevaluemovie_detail_idint電影詳情頁IDmovie_base_idint電影IDmovie_namestring電影名timestring上映時(shí)間starstring評(píng)分typestring類型visionstring維度ellipsisstring縮寫durationstring電影時(shí)間introductionstring電影簡(jiǎn)介introductionstring電影簡(jiǎn)介timgstring封面picstring縮略圖stills1string劇照
GET cinemas/movie_id
a. 查看成功響應(yīng)信息
HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: application/json Vary: Accept [ { "cinema_id": 1, "cinema_name": "保利萬和國(guó)際影城(都江堰店)", "movie_base_id": 1, "movie_name": "5月天諾亞方舟", "city": "成都", "address": "都江堰市彩虹大道南段295號(hào)(22點(diǎn)后請(qǐng)走斯維登公寓電梯)", "price": "28", "distance": 13.77 }, { "cinema_id": 2, "cinema_name": "天智創(chuàng)客影城(川外店)", "movie_base_id": 1, "movie_name": "5月天諾亞方舟", "city": "成都", "address": "都江堰市大觀鎮(zhèn)高爾夫大街367號(hào)四川外國(guó)語大學(xué)成都學(xué)院33棟百匯園4樓", "price": "30", "distance": 17.77 }, ......
b. 響應(yīng)參數(shù)說明
nametypevaluecinema_idint電影院IDcinema_namestring電影院名movie_base_idint電影名citystring城市名addressstring電影院地址pricestring電影院最低價(jià)格distancestring電影院距離
GET cinemas/movie_base_id/cinema_id
a. 查看成功響應(yīng)信息
HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: application/json Vary: Accept [ { "movie_id": "1", "movie_name": "5月天諾亞方舟", "vision": "3D", "cinema_id": "1", "cinema_name": "保利萬和國(guó)際影城(都江堰店)", "time": "09-19", "price": "28", "duration": "114" }
b. 響應(yīng)參數(shù)說明
nametypevaluemovie_idint電影IDmovie_namestring電影名visionint電影縮寫cinema_idstring電影院idcinema_namestring電影院名字timestring上映時(shí)間pricestring價(jià)格durationstring電影長(zhǎng)度
感謝各位的閱讀,以上就是“Python怎么實(shí)現(xiàn)API電影場(chǎng)次查詢”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對(duì)Python怎么實(shí)現(xiàn)API電影場(chǎng)次查詢這一問題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!