-
Notifications
You must be signed in to change notification settings - Fork 10
User
aknorw edited this page Jun 21, 2019
·
3 revisions
const options = {
username,
status,
pagination,
sort,
}
client.getInventory(options)| param | required | type | - |
|---|---|---|---|
options |
false | object | See below |
| key | required | type | default | - |
|---|---|---|---|---|
| username | true | string | - | |
| status | false | string | - | Must be All, Deleted, Draft, Expired, For Sale, Sold, Suspended or Violation
|
| pagination | false | object | - | See paginate |
| sort | false | object | - | See sort - by listed (default), price, item, artist, label, catno, audio, status or location
|
See on Discogs API documentation
client.getIdentity()See on Discogs API documentation
See on Discogs API documentation
client.getProfile(username)| param | required | type | - |
|---|---|---|---|
username |
true | string |
const data = {
name,
homepage,
location,
profile,
currency,
}
client.editProfile(username, data)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
data |
true | object | See below |
| key | required | type | default | - |
|---|---|---|---|---|
| name | false | string | - | |
| homepage | false | string | - | |
| location | false | string | - | |
| profile | false | string | - | |
| currency | false | string | - | Must be a supported currency |
client.getSubmissionsForUser(username, pagination)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
pagination |
false | object | See paginate |
See on Discogs API documentation
client.getContributionsForUser(username, pagination, sort)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
pagination |
false | object | See paginate |
sort |
false | object | See sort - by label (default), artist, title, catno, format, rating, year or added
|
See on Discogs API documentation
client.listFoldersForUser(username)| param | required | type | - |
|---|---|---|---|
username |
true | string |
See on Discogs API documentation
client.getFolderForUser(username, folderId)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
folderId |
true | int |
See on Discogs API documentation
client.editFolderForUser(username, folderId, name)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
folderId |
true | int | |
name |
true | string |
See on Discogs API documentation
client.removeFolderForUser(username, folderId)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
folderId |
true | int |
See on Discogs API documentation
client.createFolderForUser(username, name)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
name |
true | string |
See on Discogs API documentation
client.getItemsInFolderForUser(username, folderId, pagination, sort)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
folderId |
true | int | |
pagination |
false | object | See paginate |
sort |
false | object | See sort - by label, artist, title, catno, format, rating, year or added
|
See on Discogs API documentation
client.getCustomFields(username)| param | required | type | - |
|---|---|---|---|
username |
true | string |
See on Discogs API documentation
client.getValue(username)| param | required | type | - |
|---|---|---|---|
username |
true | string |
See on Discogs API documentation
client.getWantlist(username, pagination)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
pagination |
false | object | See paginate |
See on Discogs API documentation
const options = {
username,
releaseId,
notes,
rating,
}
client.addToWantlist(options)| param | required | type | - |
|---|---|---|---|
options |
true | object | See below |
| key | required | type | default | - |
|---|---|---|---|---|
| username | true | string | - | |
| releaseId | true | int | - | |
| notes | false | string | - | |
| rating | false | int | 0 | From 0 to 5 |
See on Discogs API documentation
client.removeFromWantlist(username, releaseId)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
releaseId |
true | int |
See on Discogs API documentation
client.getListsForUser(username, pagination)| param | required | type | - |
|---|---|---|---|
username |
true | string | |
pagination |
false | object | See paginate |