24 lines
584 B
TypeScript
24 lines
584 B
TypeScript
import bcfetch from '../../';
|
|
import util from 'util';
|
|
|
|
const username = 'patrickkfkan';
|
|
|
|
const params = {
|
|
target: username,
|
|
imageFormat: 'bio_featured'
|
|
};
|
|
|
|
bcfetch.fan.getFollowingArtistsAndLabels(params).then(async (results) => {
|
|
console.log(util.inspect(results, false, null, false));
|
|
|
|
if (results.continuation) {
|
|
console.log('Fetching more by continuation...');
|
|
|
|
const moreResults = await bcfetch.fan.getFollowingArtistsAndLabels({
|
|
...params,
|
|
target: results.continuation
|
|
});
|
|
console.log(util.inspect(moreResults, false, null, false));
|
|
}
|
|
});
|