23 lines
514 B
JavaScript
23 lines
514 B
JavaScript
import bcfetch from 'bandcamp-fetch';
|
|
|
|
const username = 'KeksNino';
|
|
|
|
const params = {
|
|
target: username,
|
|
imageFormat: 'art_app_large'
|
|
}
|
|
|
|
bcfetch.fan.getWishlist(params).then(async (wishlist) => {
|
|
console.log(JSON.stringify(wishlist, null, 2));
|
|
|
|
if (wishlist.continuation) {
|
|
console.log('Fetching more by continuation...')
|
|
|
|
const moreResults = await bcfetch.fan.getWishlist({
|
|
...params,
|
|
target: wishlist.continuation
|
|
});
|
|
console.log(JSON.stringify(moreResults, null, 2));
|
|
}
|
|
});
|