0.0.71 • Published 1 year ago
vinted-client v0.0.71
vinted-client
Description
api-vinted
is a package that provides an unofficial API for interacting with the Vinted platform.
Status
⚠️ Warning: This project is currently under development and is not an official package. Use it at your own risk.
Installation
npm install vinted-client
Example usage
const { User } = require("vinted-client");
const user = new User(access_token, refresh_token, x_crf_token);
// Initialize the user
user.init();
// Now you can access to user information
console.log(user.user);
Documentation
Summary:
User
getNotifications
await user.getNotifications(page?, per_page?);
Parameters:
page
(optional): The page number to get notifications from. Default is 1.per_page
(optional): The number of notifications to get per page. Default is 5.
getOrders
await user.getOrders(type, status, page?, per_page?);
Parameters:
type
("sold" | "purchased" | "all"): The type of orders to get. Default isall
.status
("all" | "in_progress" | "completed" | "canceled"): The status of orders to get. Default isall
.page
(optional): The page number to get orders from. Default is 1.per_page
(optional): The number of orders to get per page. Default is 5.
getStats
await user.getStats();
getConversations
await user.getConversations(conversation_id);
Parameters:
conversation_id
(number): The ID of the conversation to get.
getInbox
await user.getInbox(page?, per_page?);
Parameters:
page
(optional): The page number to get conversations from. Default is 1.per_page
(optional): The number of conversations to get per page. Default is 5.
Contact
If you have any questions or need further assistance, feel free to contact me on Discord. My tag is .skanix
. I'm looking forward to hearing from you!
License
GPL-3.0