Introduction
This package provides the TheTVDB
class, which facilitates interaction with various endpoints of TheTVDB API.
Parameters
To instantiate the TheTVDB class, provide your valid TVDB API token:
Params | Type | Required | Description |
---|---|---|---|
token | string | Yes | Your TVDB API token |
Throws exceptions
The package throws exceptions in two key scenarios:
-
Token
-
Response.ok
For more information about the
ok
property, refer to the official documentation: https://developer.mozilla.org/en-US/docs/Web/API/Response/ok
Best Practices
When making requests with this package, we strongly recommend using try-catch blocks to gracefully handle potential exceptions arising from asynchronous operations. This practice promotes application stability and provides opportunities for informative error messaging.