Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/getstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ Should you choose to store your credentials in another way and not to set the
`store` flag, you will need to ensure that your application applies the
following settings before attempting to interact with Trakt

* `trakt.core.api_key`
* Note: api_key is deprecated in favor of OAUTH_TOKEN and will go away with the next major release
* `trakt.core.OAUTH_TOKEN`
* `trakt.core.CLIENT_ID`
* `trakt.core.CLIENT_SECRET`
Expand Down
5 changes: 1 addition & 4 deletions trakt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
CONFIG_PATH = os.path.join(os.path.expanduser('~'), '.pytrakt.json')

#: Your personal Trakt.tv OAUTH Bearer Token
OAUTH_TOKEN = api_key = None
OAUTH_TOKEN = None

# OAuth token validity checked
OAUTH_TOKEN_VALID = None
Expand Down Expand Up @@ -476,9 +476,6 @@ def _bootstrap(self):
if (not OAUTH_TOKEN_VALID and OAUTH_EXPIRES_AT is not None
and OAUTH_REFRESH is not None):
_validate_token(self)
# For backwards compatibility with trakt<=2.3.0
if api_key is not None and OAUTH_TOKEN is None:
OAUTH_TOKEN = api_key

@staticmethod
def _get_first(f, *args, **kwargs):
Expand Down