Introduction
This package provides the MobyGames
class, which facilitates interaction with various endpoints of MobyGames API.
Parameters
To instantiate the MobyGames class, provide your valid MobyGames API key:
Params | Type | Required | Description |
---|---|---|---|
key | string | Yes | Your MobyGames API key |
Throws exceptions
The package throws exceptions in two key scenarios:
-
key
-
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.