TMDB Class Reference

Inherits from NSObject
Declared in TMDB.h
TMDB.m

Overview

The TMDB singleton instance is used as the TMDb context for all requests to the TMDb API.

Context Settings

  apiKey

The API key used by the context. Required.

@property (nonatomic, copy) NSString *apiKey

Discussion

The API key used by the context. Required.

Declared In

TMDB.h

  language

The language used by the context. Default @"en" (English). Optional.

@property (nonatomic, copy) NSString *language

Discussion

The language used by the context. Default @"en" (English). Optional.

Declared In

TMDB.h

Getting Configuration

  configuration

The TMDb configuration.

@property (nonatomic, strong, readonly) TMDBConfiguration *configuration

Discussion

The TMDb configuration.

Declared In

TMDB.h

UnavailableMethods Methods

– movieWithID:

Fetches information about the movie with the given TMDb ID.

- (TMDBMovie *)movieWithID:(NSInteger)anID

Parameters

anID

The ID of the movie to fetch information about.

Return Value

A TMDBMovie instance with the current information from the TMDb website.

Discussion

Fetches information about the movie with the given TMDb ID.

Warning: This method has been deprecated and removed as it doesn’t follow proper API design. Use [TMDBMovie movieWithID:options:context:] instead.

Declared In

TMDB.h

– movieWithName:

Fetches information about the movie with the given name.

- (TMDBMovie *)movieWithName:(NSString *)aName

Parameters

aName

The name of the movie to fetch information about.

Discussion

Fetches information about the movie with the given name.

As several movies share the same name, you can pass the year the movie was released to narrow down the search, e.g. “Charlotte’s Web (2006)” to get the remake from 2006, rather than the original from 1973.

Warning: This method has been deprecated and removed as it doesn’t follow proper API design. Use [TMDBMovie movieWithName:options:context:] instead.

Declared In

TMDB.h