hackin
This commit is contained in:
1 parent
87f07ee7dc
commit
f0e204d70b
7 files changed
+535
-286
No files matched your search
@@ -1,17 +1,12 @@
|
||||
import fs from 'fs/promises';
|
||||
import { Client as DiscogsClient } from 'disconnect';
|
||||
|
||||
const TOKEN = 'wRTXuYZGOPsIQgKRGKCAkUkidGtvpSfQgPWkYIpD';
|
||||
import discogsService from './src/discogs';
|
||||
import sellers from './sellers';
|
||||
|
||||
async function start() {
|
||||
await
|
||||
const discogs = new DiscogsClient({ userToken: TOKEN });
|
||||
const db = discogs.database();
|
||||
const list = await discogs.user().wantlist().getReleases('margh');
|
||||
|
||||
return db.getRelease(list.wants[0].id);
|
||||
// const releases = await Promise.all(list.wants.map(l => db.getRelease(l.id)));
|
||||
// return releases;
|
||||
const discogs = discogsService();
|
||||
// return discogs.wantlist('margh');
|
||||
return discogs.inventory(sellers[2]);
|
||||
}
|
||||
|
||||
start()
|
||||
|
||||
Reference in new issue
Block a user