이 올바른지 모르겠지만 내 프로젝트에 대한 TMDB API를 사용하고 있습니다. 디지털 버전을 얻으려면 release_dates
을 URL에 추가하십시오. 그래서 내 경우에이 싶습니다
https://api.themoviedb.org/3/movie/271110?api_key= ** f7039633f2065942cd8a28d7cadad4 & append_to_response = release_dates & 콜백 = angular.callbacks._1
공지 사항 append_to_response=release_dates
이 JSON과 같이 반환
{
"adult":false,
"backdrop_path":"/rqAHkvXldb9tHlnbQDwOzRi0yVD.jpg",
"belongs_to_collection":{
"id":131295,
"name":"Captain America Collection",
"poster_path":"/2tOgiY533JSFp7OrVlkeRJvsZpI.jpg",
"backdrop_path":"/nZSYqitBkAvmoq5IrsGsSWuhSC8.jpg"
},
"budget":250000000,
"genres":[
{
"id":28,
"name":"Action"
},
{
"id":53,
"name":"Thriller"
},
{
"id":878,
"name":"Science Fiction"
}
],
"homepage":"http://marvel.com/captainamericapremiere",
"id":271110,
"imdb_id":"tt3498820",
"original_language":"en",
"original_title":"Captain America: Civil War",
"overview":"Following the events of Age of Ultron, the collective governments of the world pass an act designed to regulate all superhuman activity. This polarizes opinion amongst the Avengers, causing two factions to side with Iron Man or Captain America, which causes an epic battle between former allies.",
"popularity":59.186478,
"poster_path":"/5N20rQURev5CNDcMjHVUZhpoCNC.jpg",
"production_companies":[
{
"name":"Marvel Studios",
"id":420
}
],
"production_countries":[
{
"iso_3166_1":"US",
"name":"United States of America"
}
],
"release_date":"2016-04-27",
"revenue":1152000000,
"runtime":146,
"spoken_languages":[
{
"iso_639_1":"ro",
"name":"Română"
},
{
"iso_639_1":"en",
"name":"English"
},
{
"iso_639_1":"de",
"name":"Deutsch"
},
{
"iso_639_1":"ru",
"name":"Pусский"
}
],
"status":"Released",
"tagline":"Divided We Fall",
"title":"Captain America: Civil War",
"video":false,
"vote_average":6.9,
"vote_count":2740,
"release_dates":{
"results":[
{
"iso_3166_1":"BR",
"release_dates":[
{
"certification":"12",
"iso_639_1":"pt",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IN",
"release_dates":[
{
"certification":"UA",
"iso_639_1":"en",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"TH",
"release_dates":[
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-04-27T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"GB",
"release_dates":[
{
"certification":"12A",
"iso_639_1":"en",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"PH",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-04T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IE",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"KZ",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"RO",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"AR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"GR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"ES",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"CA",
"release_dates":[
{
"certification":"PG",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"SG",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"PT",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"TR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"DK",
"release_dates":[
{
"certification":"11",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"BY",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"CL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"FI",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"CH",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-27T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"FR",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"Paris",
"release_date":"2016-04-18T00:00:00.000Z",
"type":1
},
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-27T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"IT",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-04T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"RU",
"release_dates":[
{
"certification":"16+",
"iso_639_1":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":1
},
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
},
{
"certification":"",
"iso_639_1":"ru",
"note":"BD-50, DVD-9",
"release_date":"2016-08-02T00:00:00.000Z",
"type":5
}
]
},
{
"iso_3166_1":"NO",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"SE",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"HU",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-12T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"EE",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"NZ",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"MX",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"BG",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"DE",
"release_dates":[
{
"certification":"12",
"iso_639_1":"",
"note":"Berlin",
"release_date":"2016-04-21T00:00:00.000Z",
"type":1
},
{
"certification":"12",
"iso_639_1":"de",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"AU",
"release_dates":[
{
"certification":"M",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"PL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"AZ",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"NL",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-28T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"MY",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-05T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"JP",
"release_dates":[
{
"certification":"",
"iso_639_1":"",
"note":"",
"release_date":"2016-04-29T00:00:00.000Z",
"type":3
}
]
},
{
"iso_3166_1":"US",
"release_dates":[
{
"certification":"PG-13",
"iso_639_1":"en",
"note":"Los Angeles, California",
"release_date":"2016-04-12T00:00:00.000Z",
"type":1
},
{
"certification":"PG-13",
"iso_639_1":"",
"note":"",
"release_date":"2016-05-06T00:00:00.000Z",
"type":3
},
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-09-02T00:00:00.000Z",
"type":4
},
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-09-13T00:00:00.000Z",
"type":5
}
]
}
]
}
}
' 여기에 많은 데이터가 있지만 유형은 4. Digital
입니다.
{
"certification":"PG-13",
"iso_639_1":"",
"release_date":"2016-09-02T00:00:00.000Z",
"type":4
},
을 그래서이 경우 릴리스 날짜 나에게 잘못된 것 2016-09-02
것 같습니다 : 그래서 그것은 보여줍니다 데이터를 통해 찾고. 그래서 API에 바꿀 수 있습니다. (블루투스에 접속 했으므로) Sep 13, 2016 (5 Days)
어쩌면 내가 잘못하고 있습니다 :)
// 편집. 방금 디지털 출시일을 변경하여 amazon와 동일하게 설정했습니다. 그래서 짧은 당신이해야 할 것은 release_dates를 추가하여 URL을 만들 수 있습니다 :
표준 정보 :
271110
그런 다음 API 키 : 다음
https://api.themoviedb.org/3/movie/
영화의 ID ? API_KEY = ** f7039633f2065942cd8a28d7cadad4
그런 다음 append_to
& append_to_response = release_dates
재미있는 사실은, 이제 여러 개의 "물건"을 추가 할 수 있습니다! 5 가지 다른 전화를하는 대신.
https://api.themoviedb.org/3/movie/271110?api_key=**f7039633f2065942cd8a28d7cadad4&append_to_response=credits,images,videos,release_dates
이 또한 JSON으로 배우, 이미지 및 비디오의 추가 : 그래서 당신이 뭔가를 할 수 있습니다. 그런 위대한 api!