skinvedapi
v1.0.3
Published
API Skinvend for Node.JS
Maintainers
Readme
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 skinvedapiUsage
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
