New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vinted-client

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinted-client

An unofficial API for Vinted

latest
Source
npmnpm
Version
0.0.71
Version published
Maintainers
1
Created
Source

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

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

Keywords

vinted

FAQs

Package last updated on 14 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts