initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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));
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user