29 lines
715 B
TypeScript
29 lines
715 B
TypeScript
import bcfetch from '../../';
|
|
import util from 'util';
|
|
|
|
const artistUrl = 'https://macmccaughan.bandcamp.com';
|
|
const labelUrl = 'https://mergerecords.bandcamp.com';
|
|
|
|
const artistInfoParams = {
|
|
bandUrl: artistUrl,
|
|
imageFormat: 'art_app_large',
|
|
labelId: 1415932000
|
|
};
|
|
|
|
const labelInfoParams = {
|
|
bandUrl: labelUrl,
|
|
imageFormat: 'art_app_large'
|
|
};
|
|
|
|
bcfetch.band.getInfo(artistInfoParams).then((results) => {
|
|
console.log(`Artist URL: ${artistUrl}`);
|
|
console.log(util.inspect(results, false, null, false));
|
|
console.log();
|
|
});
|
|
|
|
bcfetch.band.getInfo(labelInfoParams).then((results) => {
|
|
console.log(`Label URL: ${labelUrl}`);
|
|
console.log(util.inspect(results, false, null, false));
|
|
console.log();
|
|
});
|