spotify-web-api-ts
TypeScript icon, indicating that this package has built-in type declarations

1.4.5 • Public • Published

spotify-web-api-ts

An isomorphic TypeScript wrapper for Spotify's Web API
View the docs »

npm minzipped size license

Master Workflow codecov semantic-release

Installation

yarn

yarn add spotify-web-api-ts

npm

npm install spotify-web-api-ts

Basic Example

import { SpotifyWebApi } from 'spotify-web-api-ts';

const spotify = new SpotifyWebApi({ accessToken: '<YOUR_ACCESS_TOKEN_HERE>' });

const { artists } = await spotify.albums.getAlbum('1uzfGk9vxMXfaZ2avqwxod');

console.log(artists.map(artist => artist.name));
// Array [ "Against All Logic" ]

Dependents (0)

Package Sidebar

Install

npm i spotify-web-api-ts

Weekly Downloads

11

Version

1.4.5

License

MIT

Unpacked Size

288 kB

Total Files

196

Last publish

Collaborators

  • adamgrieger