speedsmm-api
, Sosyal Medya Pazarlama (SMM) 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.
npm install speedsmm-api
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 bakiyenizi sorgular.
smm.getBalance().then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Mevcut hizmetleri listeler.
smm.getServices().then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Belirtilen siparişin durumunu sorgular.
smm.getStatus({ order: '12345' }).then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Yeni bir sipariş ekler.
smm.addOrder({
service: 'service_id',
data: {
link: 'https://example.com',
quantity: 100,
custom: 'custom_data'
}
}).then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Bir veya birden fazla siparişi iptal eder.
smm.ordersCancel({ orders: ['12345', '67890'] }).then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Bir siparişi doldurur.
smm.refill({ order: '12345' }).then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Doldurma durumunu sorgular.
smm.refillStatus({ order: '12345' }).then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Birden fazla siparişin doldurma durumlarını sorgular.
smm.refillMultipleStatus({ orders: ['12345', '67890'] }).then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
Kendi IP adresinizi sorgular.
smm.getMyIP().then(response => {
console.log(response);
}).catch(error => {
console.error(error);
});
- ⚖️ Its protected by Creative Commons (CC BY-NC-SA 4.0)