speedsmm-api

1.0.9 • Public • Published

🚀 speedsmm-api

speedsmm-api, SMM (Sosyal Medya Pazarlama) panelleri ile kolayca etkileşime geçmenizi sağlayan bir Node.js modülüdür. Bu modül, API anahtarınızı ve proxy ayarlarınızı kullanarak çeşitli SMM hizmetlerine erişim sağlar.

📦 Kurulum

npm install speedsmm-api

📚 Kullanım

Modülü kullanmak için, önce smmAPI sınıfını içe aktarın ve gerekli seçeneklerle yeni bir örnek oluşturun.

const smmAPI = require('speedsmm-api');

const smm = new smmAPI({
    key: 'YOUR_API_KEY',
    api: 'https://example.com/api',
    proxy: [
        {
            host: 'proxy_host',
            port: 8080,
            auth: {
                username: 'proxy_user',
                password: 'proxy_pass'
            }
        }
    ]
});

🌟 API Metodları

💰 getBalance()

API bakiyenizi sorgular.

smm.getBalance().then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

🛠️ getServices()

Mevcut hizmetleri listeler.

smm.getServices().then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

📊 getStatus({ order })

Belirtilen siparişin durumunu sorgular.

smm.getStatus({ order: '12345' }).then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

addOrder({ service, link, quantity, custom })

Yeni bir sipariş ekler.

smm.addOrder({
    service: 'service_id',
    data: { link: "https://www.instagram.com/p/CFQ4ZJ5nZ6e/", quantity: 100, custom: "test" }
}).then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

orderCancel({ order })

Bir siparişi iptal eder.

smm.orderCancel({ order: '12345' }).then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

🔄 refill({ order })

Bir siparişi doldurur.

smm.refill({ order: '12345' }).then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

🔍 refillStatus({ order })

Doldurma durumunu sorgular.

smm.refillStatus({ order: '12345' }).then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

📝 Lisans

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i speedsmm-api

    Weekly Downloads

    1

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    26.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • fastuptime