API說明
API位置 |
/new_ezding/movies/{movie_id} |
需求描述 |
取得一部電影詳細資料 |
傳輸物件格式 |
json |
方法 |
GET |
範例
curl -X GET \
-H " X-Ftcsys-key: {KEY}" \
-H " X- Accept-Language: {language}" \
-H " X-Ftc-Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
https:
回傳範例
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
{
"result": {
"movie_id": "c5516129d1e94c71841f09d3d18290e2",
"movie_category": "愛情,冒險",
"movie_title": {
"zh_tw": "電影中文名稱",
"en_us": "電影英文名稱"
},
"release_date": 1491023655,
"grade": 0,
"movie_staff": [
{
"staff_type": "1",
"staff_id": "00001",
"staff_name": "馮迪索"
},
{
"staff_type": "1",
"staff_id": "00002",
"staff_name": "大衛艾亞"
},
{
"staff_type": "2",
"staff_id": "00002",
"staff_name": "大衛艾亞"
},
{
"staff_type": "3",
"staff_id": "00002",
"staff_name": "大衛艾亞"
}
],
"movie_tag": [
{
"tag_id": "00001",
"tag_name": "馮迪索"
},
{
"tag_id": "00002",
"tag_name": "最強老爸"
}
],
"movie_poster": [
{
"poster_id": "00001",
"poster_type": 1,
"poster_url": "電影海報所在位置"
},
{
"poster_id": "00001",
"poster_type": 2,
"poster_url": "電影劇照所在位置"
}
],
"movie_preview": [
{
"preview_id": "00001",
"preview_type": 1,
"refrence_id": "xXHWBpNRSN4",
"preview_body": "<iframe width='560' height='315' src='http://www.youtube.com/embed/xXHWBpNRSN4' frameborder='0' allowfullscreen></iframe>"
}
],
"length": 148,
"imdb_score": 7.8,
"rt_score": "74%",
"ez_score": 4,
"comment_count": 3,
"movie_description": "電影介紹詳細內容",
"order_availible": true,
"sort": 1,
"status": 1,
"click_count": 100
},
"code": 200,
"status": "success"
}
接收URL參數
參數 |
名稱 |
範例 |
必填 |
備註 |
movie_id |
電影群組ID |
c5516129d1e94c71841f09d3d18290e2 |
Y |
回傳json的參數
參數 |
名稱 |
範例 |
必填 |
備註 |
movie_id |
電影群組ID |
c5516129d1e94c71841f09d3d18290e2 |
Y |
|
movie_category |
電影分類 |
愛情,冒險 |
N |
多個分類用逗號隔開 |
movie_title |
電影名稱資料 |
|
Y |
|
zh_tw |
電影中文名稱 |
擺渡人 |
Y |
|
en_us |
電影英文名稱 |
ABC |
Y |
|
release_date |
上映時間 |
148783189000 |
Y |
|
grade |
電影分級 |
0 |
Y |
0: 輔15級、1: 普遍級、2: 保護級、3: 輔12級、4: 限制級 |
movie_staff |
電影參與人員 |
movie_staff |
Y |
|
staff_type |
電影參與人員類型 |
1 |
Y |
1:導演、2:演員、3:編劇,排序為1導演>2演員>3編劇 |
staff_id |
電影參與人員ID |
00001 |
Y |
|
staff_name |
電影參與人員名稱 |
馮迪索 |
Y |
|
movie_tag |
電影標籤 |
movie_tag |
Y |
|
tag_id |
標籤ID |
00001 |
Y |
|
tag_name |
標籤名稱 |
馮迪索 |
Y |
|
movie_poster |
電影海報 |
movie_poster |
Y |
|
poster_id |
電影海報ID |
00001 |
Y |
|
poster_type |
電影海報分類 |
1 |
Y |
1:海報、2:劇照,排序為1海報>2劇照 |
poster_url |
電影海報所在位置 |
https://www.ezding.com.tw/00001.jpg |
Y |
|
movie_preview |
電影預告 |
movie_preview |
N |
|
preview_id |
電影預告ID |
00001 |
N |
|
preview_type |
電影預告分類 |
1 |
N |
1:url link、2:embed code,排序為1 url link>2 embed code |
preview_body |
電影預告內容 |
<iframe width='560' height='315' src='http://www.youtube.com/embed/xXHWBpNRSN4' frameborder='0' allowfullscreen></iframe> |
N |
|
imdb_score |
imdb分數 |
7.8 |
Y |
|
rt_score |
爛分茄分數 |
74% |
Y |
|
ez_score |
ez訂會員評分平均值 |
4 |
Y |
|
comment_count |
總評論數 |
3 |
Y |
|
length |
片長 |
110 |
Y |
|
movie_description |
電影介紹詳細內容 |
《捍衛任務》原班團隊再度集結,再創殺手世界新格局,全球狂賣近億美金的動作神片《捍衛任務》,強烈硬漢的動作風格以... |
Y |
|
order_availible |
是否可訂票 |
true |
Y |
true:有開演場次可訂票、fault:無開演場次不可訂票 |
status |
狀態 |
1 |
Y |
1:上架、0:下架 |
click_count |
點擊數 |
100 |
N |
點擊數 |