Credentials class
Represents a configuration for a given api key.
For making any request from film_gyan an API key has to be given to the SDK.
Go to https://www.themoviedb.org/settings/api to create an API key.
Few optional parameters are also needed while making the api call.
language : The language in which the response has to be returned. Default value is en-US. If want to use en-US no need to pass that value.
region : The region for which the response is needed. Not all apis support this but specific apis uses this to give data based on region. If the value is not specified then the default value will be used.
Constructors
- Credentials({required String apiKey, String language = 'en-US', String region = 'US'})
Properties
- apiKey ↔ String
-
API key for https://www.themoviedb.org/
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- language ↔ String
-
Language for the response
getter/setter pair
- region ↔ String
-
Get response based on region
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited