spotify-web-api-ts
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -26,3 +26,3 @@ "use strict"; | ||
params: { | ||
ids: artistIds, | ||
ids: artistIds.join(','), | ||
}, | ||
@@ -29,0 +29,0 @@ }); |
@@ -24,3 +24,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
params: { | ||
ids: artistIds, | ||
ids: artistIds.join(','), | ||
}, | ||
@@ -27,0 +27,0 @@ }); |
{ | ||
"name": "spotify-web-api-ts", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "An isomorphic TypeScript wrapper for Spotify's Web API", | ||
@@ -14,3 +14,4 @@ "main": "cjs/index.js", | ||
"esm", | ||
"types" | ||
"types", | ||
"assets" | ||
], | ||
@@ -17,0 +18,0 @@ "scripts": { |
@@ -1,4 +0,53 @@ | ||
# spotify-web-api-ts | ||
<p align="center"> | ||
<a href="https://github.com/adamgrieger/spotify-web-api-ts"> | ||
<img src="assets/logo.svg" height="100"> | ||
</a> | ||
![Master Workflow](https://github.com/adamgrieger/spotify-web-api-ts/workflows/Master%20Workflow/badge.svg) | ||
[![codecov](https://codecov.io/gh/adamgrieger/spotify-web-api-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/adamgrieger/spotify-web-api-ts) | ||
<h3 align="center">spotify-web-api-ts</h3> | ||
<p align="center"> | ||
An isomorphic TypeScript wrapper for Spotify's Web API | ||
<br /> | ||
<a href="https://adamgrieger.github.io/spotify-web-api-ts/"><strong>View the docs »</strong></a> | ||
<br /> | ||
<p align="center"> | ||
<img alt="npm" src="https://badgen.net/npm/v/spotify-web-api-ts"/> | ||
<img alt="minzipped size" src="https://badgen.net/bundlephobia/minzip/spotify-web-api-ts"> | ||
<img alt="license" src="https://badgen.net/github/license/adamgrieger/spotify-web-api-ts"> | ||
</p> | ||
<p align="center"> | ||
<img alt="Master Workflow" src="https://github.com/adamgrieger/spotify-web-api-ts/workflows/Master%20Workflow/badge.svg"/> | ||
<img alt="codecov" src="https://codecov.io/gh/adamgrieger/spotify-web-api-ts/branch/master/graph/badge.svg"/> | ||
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg"> | ||
</p> | ||
</p> | ||
</p> | ||
## Installation | ||
### yarn | ||
```sh | ||
yarn add spotify-web-api-ts | ||
``` | ||
### npm | ||
```sh | ||
npm install spotify-web-api-ts | ||
``` | ||
## Basic Example | ||
```typescript | ||
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)); | ||
// ['Against All Logic'] | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
289214
204
54