0.0.71 • Published 1 year ago

vinted-client v0.0.71

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

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 is all.
  • status ("all" | "in_progress" | "completed" | "canceled"): The status of orders to get. Default is all.
  • 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

0.0.71

1 year ago

0.0.7

1 year ago

0.0.68

1 year ago

0.0.67

1 year ago

0.0.66

1 year ago

0.0.65

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago