Skip to content

Configuration

George Kye edited this page Oct 26, 2016 · 4 revisions

This method currently holds the data relevant to building image URLs as well as the change key map.

To build an image URL, you will need 3 pieces of data. The base_url, size and file_path. Simply combine them all and you will have a fully qualified URL. Here’s an example URL:

http://image.tmdb.org/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg
Required Parameters
api_key

Usage

    ConfigurationMDB.configuration(apikey){
      clientData, configs in
      if let configData = configs{
        print(configData.base_url)
        print(configData.secure_base_url)
        print(configData.backdrop_sizes)
        print(configData.still_sizes)
        print(configData.logo_sizes)
      }
    }
Clone this wiki locally