Core.rq_inventory_upload is a collection of function wrappers around the Discogs API for inventory uploads.
# Example for usage of add_new_listings_using_csv
csv_path = Path("../test_example/file.csv")
with open(csv_path, "rb") as upload_file:
add_new_listings_using_csv(user=example_user,
file=upload_file)
pd.read_csv(csv_path)
# Example for usage of update_existing_listings_using_csv
csv_path = Path("../test_example/file.csv")
with open(csv_path, "rb") as upload_file:
update_existing_listings_using_csv(user=example_user,
file=upload_file)
pd.read_csv(csv_path)
# Example for usage of delete_listings_using_csv
csv_path = Path("../test_example/delete_file.csv")
with open(csv_path, "rb") as upload_file:
delete_listings_using_csv(user=example_user,
file=upload_file)
pd.read_csv(csv_path)
# Example for usage of get_list_of_recent_uploads
get_list_of_recent_uploads(user=example_user,
page=1,
per_page=3)
# Example for usage of get_upload
get_upload(user=example_user,
upload_id=191405)