🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

spotify-web-api-ts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-web-api-ts

An isomorphic TypeScript wrapper for Spotify's Web API

1.4.5
latest
Source
npm
Version published
Weekly downloads
51
75.86%
Maintainers
1
Weekly downloads
 
Created
Source

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" ]

FAQs

Package last updated on 11 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts