neverlose.cc market api wrapper

Overview

Neverlose.cc API

This is the neverlose.cc market api wrapper written on node.js(ts)

Getting started

Install for npm

npm install neverlose-api

Then you should to get your userid and client secret from site (https://neverlose.cc/market/api)

And setup callback url's

alt preview

Then create market class and an http/https server

const { NeverloseMarket } = require('neverlose-api');

const market = new NeverloseMarket({
    'userid': 1337,
    'secret': 'your_secret'
});

market.create_http_server();
// or
market.create_https_server({
    key: 'key',
    cert: 'cert'
});

Available events

balance_transfer - When user transfered money to your account

market.on('balance_transfer', ctx => {
    console.info(`${ctx.username} transfered to you ${ctx.amount} NLE`); 
});

item_purchase - When user purchased your market item

market.on('item_purchase', ctx => {
    console.info(`${ctx.username} purchased your market item ${ctx.item_id} for ${ctx.amount} NLE`);
});

Available POST requests

transfer_money - Transferring money to user

market.transfer_money('Teselka', 0.01, ctx => {
    if (ctx.err) {
        console.error(`Failed to transfer ${ctx.amount} NLE to user ${ctx.username}`);
        return;
    }

    console.log(`Successfully transferred ${ctx.amount} NLE to user ${ctx.username}`);
});

gift_product - Gifting product to user

market.gift_product('Teselka', 'csgo', ctx => {
    if (ctx.err) {
        console.error(`Failed to gift product ${ctx.product} to user ${ctx.username}`);
        return;
    }

    console.log(`${ctx.user} successfully got product ${ctx.product} (${ctx.cnt})`);
});

Available utils

generate_signature - Generating signature

market.generate_signature({
    "amount": 0.9,
    "username": "A49",
    "unique_id": 89968,
    "item_id": "E3yugw",
});

validate_signature - Validating signature

market.validate_signature({
    "amount": 0.9,
    "username": "A49",
    "unique_id": 89968,
    "item_id": "E3yugw",
    "signature": "your_sig"
});
You might also like...

A Roblox OpenCloud API wrapper for Deno (and NodeJS) written in TypeScript.

Active Development This module is currently in active development. Nothing is going to stay consistent as it reaches a stable release. Dynablox Docs |

Oct 28, 2022

API wrapper for plutu.ly

Plutu-TS A tiny client for the plutu.ly API written in Typescript. ✨ Features: Tiny 1KB size gzip Works in Node.js and in Browser Built-in Typescript

May 2, 2022

🍬 Tixte Developer API Wrapper

Tixte Wrapper The best Tixte wrapper around This package was done because I wanted to use the Tixte API in a hackathon, there were already 2 packages

Apr 6, 2022

A JavaScript wrapper for the Salad.io API!

A JavaScript wrapper for the Salad.io API!

SaladWrap A lightweight wrapper for the Salad.io API Quick Links Installation Code Example Console Output Maintainers Installation Install saladwrap.j

Apr 17, 2022

A node wrapper for the Netcup CCP API.

Netcup-node A node wrapper for the Netcup CCP API. Current support only JSON Rest API, no SOAP yet auto auth handling with support to use custom auth

Dec 22, 2022

A wrapper client for Strike's public API.

node-strike A wrapper client for Strike's public API. Usage Import the wrapper and instantiate a client. import { NodeStrike } from 'node-strike'; //

Apr 28, 2022

API wrapper for plutu.ly

Plutu-TS A tiny client for the plutu.ly API written in Typescript. ✨ Features: Tiny 1KB size gzip Works in Node.js and in Browser Built-in Typescript

May 2, 2022

A simple, easy to use wrapper for Hypixel API.

A simple, easy to use wrapper for Hypixel API.

An easy to use Hypixel API wrapper. About hypixel.ts is a NodeJS module which allows you to interact with the Hypixel API easily. Written in Typescrip

Dec 18, 2022

A handy wrapper for the Web Notifications API

Notify.js A handy wrapper for using the Web Notifications API. Notify.js aims to simplify requesting user permission and associated Web Notification A

Dec 4, 2022
Owner
null
This is an application that entered the market with a mobile application in real life. We wrote the backend side with node.js and the mobile side with flutter.

HAUSE TAXI API Get Started Must be installed on your computer Git Node Firebase Database Config You should read this easy documentation Firebase-Fires

Muhammet Çokyaman 4 Nov 4, 2021
Market Watcher - a blog where you can inform yourself about the latest economic-related news

Market Watcher - a blog where you can inform yourself about the latest economic-related news

Adrien 4 Aug 5, 2022
A tool to calculate discount available on SGB (Sovereign Gold Bonds) compared to current market price on NSE

A tool to calculate discount available on SGB (Sovereign Gold Bonds) compared to current market price on NSE

Amit Wani 9 Nov 20, 2022
Bloom - Stock Market Game

Bloom - Stock Market Game We built the stock market game that we always wanted. Compete with friends by simulating investing in over 4000+ stocks. It’

Bloom 23 Oct 10, 2022
👍 💰 Market place for products with MERN stack

react-md Create an accessible React application with the material design specifications and Scss. Installing packages - How to install related compone

Milos Rad 3 Sep 22, 2022
An open source API wrapper for TechHost API.

TechHost API Wrapper An open source API wrapper for TechHost API. Badges Installation Install techhost-api-wrapper with npm. npm install techhost-api-

Eight∞ 4 Jun 23, 2022
News API Wrapper for Violetics API News

News API Wrapper for Violetics API News

Violetics 3 Mar 23, 2022
A wrapper for valorant-api, a third-party API for getting data within Valorant. Available on npm

valorant-wrapper A wrapper for the third-party valorant-api How to Use All endpoints can be accessed off the ValAPI class. import { ValAPI } from 'val

Aircraft Overviewer 5 Nov 7, 2022
Tiny Telegra.ph API wrapper for Deno

Telegra.ph API wrapper for Deno ?? This is a tiny Telegra.ph API wrapper for Deno written in TypeScript. All methods as listed here are available. See

Dunkan 9 Jul 28, 2022
Programmers House api official wrapper

programmershouse-wrapper Programmers House api official wrapper Install: npm install programmershouse-wrapper Example of using: With .then //importing

Raid 2 Mar 23, 2022