UNPKG

spotify-api.js

Version:

A complete node js wrapper of spotify api with oauth support

19 lines (18 loc) 831 B
import { AxiosError, AxiosResponse } from "axios"; /** * This error mostly occurs when the spotify api responses an invalid json format! * You can view up all the spotify web api responses, request types, etc [here](https://developer.spotify.com/documentation/web-api/) */ export declare class SpotifyAPIError extends Error { /** * The response from the axios if the error is based on the failiure of request. */ response?: AxiosResponse; /** * This error mostly occurs when the spotify api responses an invalid json format! * You can view up all the spotify web api responses, request types, etc [here](https://developer.spotify.com/documentation/web-api/) * * @param message Error message or axios response. */ constructor(response: AxiosError | string); }