Update README.md
This commit is contained in:
parent
03f1d9a2d5
commit
e1a9f02350
@ -122,7 +122,7 @@ await data.fetch() // Fetches tracks more than 50 tracks in album
|
|||||||
```js
|
```js
|
||||||
let data = await spotify(playlist_url)
|
let data = await spotify(playlist_url)
|
||||||
|
|
||||||
console.log(data.tracksCount) // Returns total tracks count in a playlist
|
console.log(data.tracksCount) // Returns total tracks count in a album
|
||||||
```
|
```
|
||||||
##### page(page_number : `number`)
|
##### page(page_number : `number`)
|
||||||
*This will return array of tracks in that page.*
|
*This will return array of tracks in that page.*
|
||||||
@ -132,7 +132,7 @@ console.log(data.tracksCount) // Returns total tracks count in a playlist
|
|||||||
```js
|
```js
|
||||||
let data = await spotify(playlist_url)
|
let data = await spotify(playlist_url)
|
||||||
|
|
||||||
console.log(data.page(1)) //This will give first 100 tracks in playlist.
|
console.log(data.page(1)) //This will give first 50 tracks in album.
|
||||||
```
|
```
|
||||||
- total_pages `property`
|
- total_pages `property`
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user