1.1.0 • Published 3 years ago

@vincenzoaiello/vintedapi v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@vincenzoaiello/vintedapi

A Node.js wrapper for the Vinted's API

Reverse engineering of Vinted's API for Andorid. The content of this repository is born for a peronal research, there isn't any collaboration with Vinted.

Features

  • Sign In
  • Search users by username
  • Get user's items on sale by userId
  • Get user's feedbacks by userId
  • Get Current user's favourite items
  • Get Current user's wallet info
  • Get Current user's order

Installation

npm i @vincenzoaiello/vintedapi

Example of use

For private features on the current user, you have to get a private token. You can get it using mitmproxy sniffing the requests made to a https://www.vinted.fr/oauth/token

const VintedApi = require("@vincenzoaiello/vintedapi");

(async () => {
	//initialize
	let vinted = new VintedApi.VintedApi();

	//get public token for the next requests
	await vinted.getToken();

	//sign in
	await vinted.signIn("username", "email@gmail.com", "password");

	//Search users by username
	let user = await vinted.getUserByName("username");

	//Get user's items on sale by userId
	console.log(await vinted.getUserItems(user.user.id));

	//Get user's feedbacks by userId
	console.log(await vinted.getUserFeedbacks(user.user.id));

	//Set private token
	await vinted.setPrivateToken("token");

	//Get info of the account associated to the private Token
	console.log(await vinted.getCurrenUser());

	//Get Current user's favourite items
	console.log(await vinted.getCurrentUserFav());

	//Get Current user's wallet info
	console.log(await vinted.getCurrentUserWallet());

	//Get Current user's order
	console.log(await vinted.getCurrentUserOrders());

	//revoke public token
	await vinted.revokeToken();
})();

Future implementations

I'm working on login, read notification, read meassages, sell items and other features but at the moment i have problem with the login authentication. If you can help me, contact me via email: vincenzoaiello300@gmail.com

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago