@ekwoka/spotify-api
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -10,2 +10,3 @@ export { albumIsSaved } from './albums/albumIsSaved'; | ||
export { saveAlbums } from './albums/saveAlbums'; | ||
export { recentlyPlayedTracks } from './player/recentlyPlayedTracks'; | ||
export { search } from './search/search'; | ||
@@ -23,4 +24,6 @@ export { searchString } from './search/searchString'; | ||
export type { Artist, ArtistStub } from './artists/types'; | ||
export type { RecentlyPlayedTrackList } from './player/recentlyPlayedTracks'; | ||
export type { Context } from './player/types'; | ||
export type { QueryType, PageType, SearchResults } from './search/types'; | ||
export type { Track, TrackStub } from './tracks/types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -10,2 +10,3 @@ export { albumIsSaved } from './albums/albumIsSaved'; | ||
export { saveAlbums } from './albums/saveAlbums'; | ||
export { recentlyPlayedTracks } from './player/recentlyPlayedTracks'; | ||
export { search } from './search/search'; | ||
@@ -12,0 +13,0 @@ export { searchString } from './search/searchString'; |
export { fetchOptions, makeAuthURL, refreshToken, tokensFromCode, } from './auth'; | ||
export { resetCache, setToken, spotifyApiClient } from './core'; | ||
export { albumIsSaved, getAlbum, getAlbums, getAlbumTracks, getCurrentUser, getSavedAlbums, getTopItems, getUserProfile, newReleases, removeAlbums, removeTracks, saveAlbums, saveTracks, search, trackIsSaved, } from './endpoints'; | ||
export { albumIsSaved, getAlbum, getAlbums, getAlbumTracks, getCurrentUser, getSavedAlbums, getTopItems, getUserProfile, newReleases, recentlyPlayedTracks, removeAlbums, removeTracks, saveAlbums, saveTracks, search, trackIsSaved, } from './endpoints'; | ||
export { spotifyFetch } from './utils/spotifyFetch'; | ||
@@ -5,0 +5,0 @@ export type { RefreshedToken, SpotifyTokens } from './auth'; |
export { fetchOptions, makeAuthURL, refreshToken, tokensFromCode, } from './auth'; | ||
export { resetCache, setToken, spotifyApiClient } from './core'; | ||
export { albumIsSaved, getAlbum, getAlbums, getAlbumTracks, getCurrentUser, getSavedAlbums, getTopItems, getUserProfile, newReleases, removeAlbums, removeTracks, saveAlbums, saveTracks, search, trackIsSaved, } from './endpoints'; | ||
export { albumIsSaved, getAlbum, getAlbums, getAlbumTracks, getCurrentUser, getSavedAlbums, getTopItems, getUserProfile, newReleases, recentlyPlayedTracks, removeAlbums, removeTracks, saveAlbums, saveTracks, search, trackIsSaved, } from './endpoints'; | ||
export { spotifyFetch } from './utils/spotifyFetch'; |
@@ -12,3 +12,3 @@ export { arrayWrap } from './arrayWrap'; | ||
export type { BatchedFunction } from './batchRequests'; | ||
export type { Image, SpotifyPageURL, SpotifyAPIURL, } from './SpotifyUtilityTypes'; | ||
export type { Image, SpotifyPageURL, SpotifyAPIURL, UNIXTimeNumber, UNIXTimeString, ISOTimeString, } from './SpotifyUtilityTypes'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,2 +8,5 @@ export declare type Image = { | ||
export declare type SpotifyAPIURL = string; | ||
export declare type UNIXTimeNumber = number; | ||
export declare type UNIXTimeString = string; | ||
export declare type ISOTimeString = string; | ||
//# sourceMappingURL=SpotifyUtilityTypes.d.ts.map |
@@ -16,3 +16,3 @@ { | ||
"license": "MIT", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Composable Wrapper for the Spotify Web Api and Spotify Web Playback SDK", | ||
@@ -19,0 +19,0 @@ "repository": "github:ekwoka/spotify-api", |
@@ -234,2 +234,28 @@ # ⚡️A tree-shakable, composable, lightweight wrapper for the multiple Spotify APIs🔥 | ||
### Player | ||
Endpoints included in the Player category include: | ||
- `recentlyPlayedTracks` - Gets user's recently played tracks | ||
#### recentlyPlayedTracks | ||
Get the user's recently played tracks and their playing context (like in a playlist or artist). Results can be filtered by play date | ||
```js | ||
const recentlyPlayed = client(recentlyPlayed()) | ||
const recentlypPlayedFiltered = client(recentlyPlayed({ | ||
after: 1145736000000, | ||
before: 1653508800000, | ||
limit: 10 | ||
})) | ||
``` | ||
Options: | ||
- `limit`: The number of items to return. Default: `20`. Maximum: `50`. | ||
- `after`: UNIX timestamp of time after which results should return. | ||
- `before`: UNIX timestamp of time before which results should return. | ||
### Search | ||
@@ -236,0 +262,0 @@ There is only one Search endpoint: |
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
91962
164
1261
478