Skip to content

Keywords

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

Get the basic information for a specific keyword id.

          KeywordsMDB.keyword(apikey, keywordId: 1721){
      data, keywords in
      if let keywords = keywords{
        print(keywords.id)
        print(keywords.name)
      }
    }

Get the list of movies for a particular keyword by id.

      KeywordsMDB.keyword_movies(apikey, keywordId: 1721, page: 1, language: "en"){
      apiReturn, movies in
      if let movie = movies{
        print(movie[0].title)
        print(movie[0].original_title)
        print(movie[0].release_date)
        print(movie[0].overview)
      }
    }
Clone this wiki locally