Skip to content

Latest commit

 

History

History
executable file
·
58 lines (40 loc) · 1.77 KB

README.md

File metadata and controls

executable file
·
58 lines (40 loc) · 1.77 KB

tmdb.swift Build Status Swift Support Carthage compatible

https://www.themoviedb.org API wrapper

Table of Contents


Requirements

  • Swift 4.2
  • Xcode 10 or greater
  • iOS 11.0 or greater

Installation

CocoaPods

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

pod "tmdb.swift"

Carthage

If you’re using Carthage, add tmdb.swift to your Cartfile:

github "amebalabs/tmdb.swift"

Make sure to add tmdb_swift.framework to "Linked Frameworks and Libraries" and "copy-frameworks" Build Phases.

Usage

Set the API key

To retrieve a key follow instructions https://developers.themoviedb.org/3/getting-started/authentication

You can set the API key in tmdb.swift in two ways:

  1. add TMDB_API_KEY to Info.plist of your app
  2. or set TMDB.apiKey before you use API

Call API

Options

Example

Check example project in this repository

Author

License

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