Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamgrieger/spotify-web-api-ts
An isomorphic TypeScript wrapper for Spotify's Web API
https://github.com/adamgrieger/spotify-web-api-ts
api isomorphic spotify typescript web wrapper
Last synced: 2 days ago
JSON representation
An isomorphic TypeScript wrapper for Spotify's Web API
- Host: GitHub
- URL: https://github.com/adamgrieger/spotify-web-api-ts
- Owner: adamgrieger
- License: mit
- Created: 2019-06-02T04:19:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T06:40:06.000Z (11 months ago)
- Last Synced: 2024-09-17T03:16:55.468Z (about 2 months ago)
- Topics: api, isomorphic, spotify, typescript, web, wrapper
- Language: TypeScript
- Homepage: https://adamgrieger.github.io/spotify-web-api-ts/
- Size: 1.51 MB
- Stars: 37
- Watchers: 2
- Forks: 10
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
spotify-web-api
An isomorphic TypeScript wrapper for Spotify's Web API
View the docs »
## Installation
### yarn
```sh
yarn add spotify-web-api
```### npm
```sh
npm install spotify-web-api
```## Basic Example
```typescript
import { SpotifyWebApi } from "spotify-web-api";const spotify = new SpotifyWebApi({ accessToken: "" });
const { artists } = await spotify.albums.getAlbum("1uzfGk9vxMXfaZ2avqwxod");
console.log(artists.map((artist) => artist.name));
// Array [ "Against All Logic" ]
```### Contributors
- @inferrinizzard
- @adamgrieger