@ekwoka/spotify-api
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -7,2 +7,3 @@ export { albumIsSaved } from './albumIsSaved'; | ||
export { getSavedAlbums } from './getSavedAlbums'; | ||
export { newReleases } from './newReleases'; | ||
export { removeAlbums } from './removeAlbums'; | ||
@@ -9,0 +10,0 @@ export { saveAlbums } from './saveAlbums'; |
@@ -7,3 +7,4 @@ export { albumIsSaved } from './albumIsSaved'; | ||
export { getSavedAlbums } from './getSavedAlbums'; | ||
export { newReleases } from './newReleases'; | ||
export { removeAlbums } from './removeAlbums'; | ||
export { saveAlbums } from './saveAlbums'; |
@@ -7,2 +7,3 @@ export { albumIsSaved } from './albums/albumIsSaved'; | ||
export { getSavedAlbums } from './albums/getSavedAlbums'; | ||
export { newReleases } from './albums/newReleases'; | ||
export { removeAlbums } from './albums/removeAlbums'; | ||
@@ -9,0 +10,0 @@ export { saveAlbums } from './albums/saveAlbums'; |
@@ -7,2 +7,3 @@ export { albumIsSaved } from './albums/albumIsSaved'; | ||
export { getSavedAlbums } from './albums/getSavedAlbums'; | ||
export { newReleases } from './albums/newReleases'; | ||
export { removeAlbums } from './albums/removeAlbums'; | ||
@@ -9,0 +10,0 @@ export { saveAlbums } from './albums/saveAlbums'; |
@@ -5,3 +5,3 @@ export { fetchOptions, makeAuthURL, refreshToken, tokensFromCode, } from './auth'; | ||
export { spotifyApiClient } from './core/spotifyApiClient'; | ||
export { getCurrentUser, getTopItems, getUserProfile, getAlbum, getAlbums, getAlbumTracks, getSavedAlbums, albumIsSaved, saveAlbums, removeAlbums, } from './endpoints'; | ||
export { getCurrentUser, getTopItems, getUserProfile, getAlbum, getAlbums, getAlbumTracks, getSavedAlbums, albumIsSaved, saveAlbums, removeAlbums, newReleases, } from './endpoints'; | ||
export { spotifyFetch } from './utils/spotifyFetch'; | ||
@@ -8,0 +8,0 @@ export type { RefreshedToken } from './auth'; |
@@ -5,3 +5,3 @@ export { fetchOptions, makeAuthURL, refreshToken, tokensFromCode, } from './auth'; | ||
export { spotifyApiClient } from './core/spotifyApiClient'; | ||
export { getCurrentUser, getTopItems, getUserProfile, getAlbum, getAlbums, getAlbumTracks, getSavedAlbums, albumIsSaved, saveAlbums, removeAlbums, } from './endpoints'; | ||
export { getCurrentUser, getTopItems, getUserProfile, getAlbum, getAlbums, getAlbumTracks, getSavedAlbums, albumIsSaved, saveAlbums, removeAlbums, newReleases, } from './endpoints'; | ||
export { spotifyFetch } from './utils/spotifyFetch'; |
@@ -12,3 +12,3 @@ { | ||
"license": "MIT", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Composable Wrapper for the Spotify Web Api and Spotify Web Playback SDK", | ||
@@ -15,0 +15,0 @@ "keywords": [ |
@@ -140,2 +140,5 @@ # ⚡️A tree-shakable, composable, lightweight wrapper for the multiple Spotify APIs🔥 | ||
- `newReleases` - Retrieves a paginated result of new releases | ||
#### getAlbum | ||
@@ -213,2 +216,20 @@ | ||
#### newReleases | ||
Gets new Album releases, optionally scoped to a specific country | ||
```js | ||
const newReleases = client(newReleases()) | ||
const releasesWithOptions = client(newReleases({ | ||
country: 'KR', | ||
limit: 50, | ||
offset: 0 | ||
})) | ||
``` | ||
Options: | ||
- `limit`: The number of items to return. Default: `20`. Maximum: `50`. | ||
- `offset`: The index of the first item to return. Default: `0`. | ||
- `country`: Country code of results to return. | ||
### Users | ||
@@ -215,0 +236,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69836
134
971
335