TMDbFramework is swift pod to encapsulate all the themoviedb.org API.
To run the example project, clone the repo, and run pod install
from the Example directory first.
let tmdbModel = TMDb.shared
tmdbModel.apiKey = "your api key" //provided by themoviedb.org
tmdbModel.imageQuality = .medium
tmdbModel.listMoviesOf(type: .upComing) { response, movieList in
for movie in movieList {
print("Title \(movie.title!)")
print("Poster Path \(movie.posterPath!)")
print("id \(movie.id!)")
print("Release Date \(movie.releaseDate!)")
}
}
- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
- Swift 4
TMDbFramework is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TMDbFramework"
Leonardo Saragiotto, leonardo.saragiotto@gmail.com
TMDbFramework is available under the MIT license. See the LICENSE file for more info.