Class MarketplaceApi
java.lang.Object
com.amilesend.discogs.api.ApiBase
com.amilesend.discogs.api.MarketplaceApi
The Discogs Marketplace API.
API Documentation
API Documentation
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMarketplaceApi
(DiscogsConnection connection) Creates a newMarketplaceApi
object. -
Method Summary
Modifier and TypeMethodDescriptionaddOrderMessage
(@NonNull AddOrderMessageRequest request) Adds a message to an order: Must be authenticated as the seller.createListing
(@NonNull CreateListingRequest request) Creates a new listing.void
deleteListing
(@NonNull DeleteListingRequest request) Deletes a listing.getFee
(@NonNull GetFeeRequest request) Gets the fee when selling an item at a given price.getInventory
(@NonNull GetInventoryRequest request) Gets the list of listing for a user's inventory.getListing
(@NonNull GetListingRequest request) Gets a listing.getOrder
(@NonNull GetOrderRequest request) Gets information for a specific order.getOrderMessages
(@NonNull GetOrderMessagesRequest request) Gets the paginated list of messages associated with an order.getOrders
(@NonNull GetOrdersRequest request) Gets the paginated list of orders for the authenticated user.getPriceSuggestions
(@NonNull GetPriceSuggestionsRequest request) Gets a map of prices suggestions foa given release.getReleaseStatistics
(@NonNull GetReleaseStatisticsRequest request) Gets the sales statistics for a release.void
updateListing
(@NonNull UpdateListingRequest request) Updates a listing.updateOrder
(@NonNull UpdateOrderRequest request) Updates an order.Methods inherited from class ApiBase
getConnection
-
Constructor Details
-
MarketplaceApi
Creates a newMarketplaceApi
object.- Parameters:
connection
- the underlying client connection
-
-
Method Details
-
getInventory
Gets the list of listing for a user's inventory.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-
getListing
Gets a listing.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-
updateListing
Updates a listing. Note: Must be authenticated as the listing owner.- Parameters:
request
- the request- See Also:
-
deleteListing
Deletes a listing. Note: Must be authenticated as the listing owner.- Parameters:
request
- the request
-
createListing
Creates a new listing. Note: Must be authenticated as the listing owner.- Parameters:
request
- the request that describes the new listing- Returns:
- the response containing the listing identifier
- See Also:
-
getOrder
Gets information for a specific order. Note: Must be authenticated as the seller.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-
updateOrder
Updates an order. Note: Must be authenticated as the seller.- Parameters:
request
- the request with the attributes to update- Returns:
- the response
- See Also:
-
getOrders
Gets the paginated list of orders for the authenticated user.- Parameters:
request
- the request- Returns:
- the paginated list of orders
- See Also:
-
getOrderMessages
Gets the paginated list of messages associated with an order. Note: Must be authenticated as the seller.- Parameters:
request
- the request- Returns:
- the paginated list of messages.
- See Also:
-
addOrderMessage
Adds a message to an order: Must be authenticated as the seller.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-
getFee
Gets the fee when selling an item at a given price.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-
getPriceSuggestions
Gets a map of prices suggestions foa given release.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-
getReleaseStatistics
public GetReleaseStatisticsResponse getReleaseStatistics(@NonNull GetReleaseStatisticsRequest request) Gets the sales statistics for a release. Note: Authentication is optional. Authenticated users will have the currency expressed by their configured preference. Unauthenticated users will have prices reflected inCurrency.USD
.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-