Skip to content

sapsanDev/skinvedapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

npm version

skinvedapi

Skinvend API wrapper for Node.js.
Provides convenient methods for interacting with the Skinvend API.

Features

  • Create deposit (replenishment) requests
  • Create trade offers
  • Check deposit status
  • Get deposit history
  • Get deposit details (skins/items)
  • Get project balance
  • Change project exchange rate
  • Fetch Steam user inventory
  • Search for skins
  • Check bot status by trade URL
  • Purchase and withdraw skins
  • Check purchase status
  • Get purchase history
  • Check IPN signature

Installation

npm install skinvedapi

Usage

const SkinvendAPI = require('skinvedapi');

const api = new SkinvendAPI('YOUR_API_KEY', 'YOUR_SECRET_KEY', {
  resultUrl: 'https://yourdomain.com/api/skinved/callback',
  failUrl: 'https://yourdomain.com/fial_page',
  successUrl: 'https://yourdomain.com/success_page'
});

// Example: Get Steam inventory
api.GetClientSteamInvetory('76561198000000000', true, 730)
  .then(inventory => console.log(inventory))
  .catch(err => console.error(err));

Methods

constructor(apiKey, secretKey, options)

Initialize API client.

CreateDeposit(deposit_id, steam_id, trade_url, min_amount)

Create a deposit request.

CreateOffer(deposit_id, steam_id, app_id, trade_url, item_array)

Create a trade offer.

GetStatusDeposit(trade_id)

Check deposit status.

GetHistoryDeposits(start_date, end_date)

Get deposit history.

GetSkinsDeposit(trade_id)

Get deposit details (skins/items).

GetProjectBalance()

Get project balance.

SetProjectRate(coin_rate)

Change project exchange rate.

GetClientSteamInvetory(steam_id, refresh, app_id)

Fetch Steam user inventory.

SearchSkins(app_id, id, name)

Search for skins.

CheckBotStatus(tradeUrl)

Check bot status by trade URL.

BuySkin(internal_id, partner, partner_token, app_id, max_price, item_id, full_name)

Purchase and withdraw skins.

PurchaseStatus(internal_ids, trade_ids)

Check purchase status.

PurchaseHistory(start_date, end_date)

Get purchase history.

checkSignature(data, signature, timestamp)

Check IPN signature.

License

MIT

About

API for Skinved

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published