Skip to content

Companies

George Kye edited this page Oct 26, 2016 · 6 revisions
Required Parameters
api_key String! companyId Int!

Company Information

This method is used to retrieve all of the basic information about a company.

     CompanyMDB.companyInfo(apikey, companyId: 2){
      clientData, companyData in
      if let data = companyData{
        print(data.headquarters)
        print(data.logo_path)
        print(data.parent_company)
      }
    }

Company Movies

Optional Parameters
language String? page Int?
Get the list of movies associated with a particular company. ```swift CompanyMDB.companyMovies(apikey, companyId: 2, language: "EN", page: 1){ clientData, movieData in if let companyMovies = movieData{ print(companyMovies[0].title) print(companyMovies[0].original_title) print(companyMovies[0].release_date) print(companyMovies[0].overview) } }
Clone this wiki locally