saragiotto / TMDbFramework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TMDbFramework

CI Status Version License Platform codecov.io codebeat badge

TMDbFramework is swift pod to encapsulate all the themoviedb.org API.

Example

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!)")
    }
}

Requirements

  • iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
  • Swift 4

Installation

TMDbFramework is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TMDbFramework"

Author

Leonardo Saragiotto, leonardo.saragiotto@gmail.com

License

TMDbFramework is available under the MIT license. See the LICENSE file for more info.

About

License:MIT License


Languages

Language:Swift 98.9%Language:Ruby 1.1%