https://github.com/fastuptime/shopier_nodejs
Node.js ile geliştirilmiş Shopier API entegrasyon projesi.
https://github.com/fastuptime/shopier_nodejs
shopier speedsmm
Last synced: 3 months ago
JSON representation
Node.js ile geliştirilmiş Shopier API entegrasyon projesi.
- Host: GitHub
- URL: https://github.com/fastuptime/shopier_nodejs
- Owner: fastuptime
- Created: 2024-12-26T10:36:53.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-26T10:40:30.000Z (5 months ago)
- Last Synced: 2025-01-04T02:45:10.993Z (5 months ago)
- Topics: shopier, speedsmm
- Language: JavaScript
- Homepage: http://speedsmm.com/
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shopier API Entegrasyonu
Node.js ile geliştirilmiş Shopier API entegrasyon projesi.
## 📦 Gereksinimler
```bash
npm install express body-parser crypto multer @api/shopier
```## ⚙️ Yapılandırma
```javascript
const config = {
pat: 'SHOPIER_PAT_TOKEN',
username: 'SHOPIER_USERNAME',
key: 'SHOPIER_KEY'
};
```## 💻 Kullanım
### Ürün Ekleme
```javascript
shopier.postProducts({
type: 'digital',
priceData: {
currency: 'TRY',
price: '1'
},
title: 'Ürün Adı',
stockQuantity: 1
});
```### Ürün Silme
```javascript
shopier.deleteProductsId({id: 'URUN_ID'});
```## 🌐 Webhook
Webhook URL: `http://your-domain.com/shopierWebhook`
### Gelen Veri Örneği
```javascript
{
email: '[email protected]',
orderid: '123456',
currency: 0, // 0:TL, 1:USD, 2:EUR
price: '1',
buyername: 'Ad',
buyersurname: 'Soyad',
productid: 123456,
productcount: 1,
customernote: '',
productlist: '123456',
chartdetails: [{ id: 123456, quantity: 1 }],
istest: 1 // 0:Gerçek, 1:Test
}
```## 🚀 Çalıştırma
```bash
node shopier.js
```## 🔒 Güvenlik
- HMAC doğrulaması her webhook isteğinde yapılır
- Base64 decode işlemleri güvenli şekilde gerçekleştirilir## 📝 Lisans
MIT
## 🤝 Katkıda Bulunma
1. Fork edin
2. Feature branch oluşturun (`git checkout -b feature/xyz`)
3. Değişikliklerinizi commit edin (`git commit -am 'xyz özelliği eklendi'`)
4. Branch'i push edin (`git push origin feature/xyz`)
5. Pull Request oluşturun