Skip to content

updateApiKey

This setter refreshes the API key used for API calls to MobyGames API.

Parameters

ParamsTypeRequiredDescription
keystringYesThe new API key

Example

import { MobyGames } from '@untidy/mobygames';
const client = new MobyGames('access token');
client.updateApiKey = 'new access token';