UNPKG

roicmedya-api

Version:

RoicMedya.com SMM Modülü ile Instagram ve diğer platformlar için takipçi ve beğeni entegrasyonlarını zahmetsizce yapın.

65 lines (51 loc) 2.14 kB
const { getServices } = require('./modules/getServices'); const { getBalance } = require('./modules/getBalance'); const { placeOrder } = require('./modules/placeOrder'); const { trackOrder } = require('./modules/trackOrder'); const { addCompensation } = require('./modules/addCompensation'); const { trackCompensation } = require('./modules/trackCompensation'); const { cancelOrder } = require('./modules/cancelOrder'); const { serviceControl } = require('./modules/serviceControl'); const { serviceRefillControl } = require('./modules/serviceRefillControl'); const { serviceRefillTime } = require('./modules/serviceRefillTime'); const { serviceCancelControl } = require('./modules/serviceCancelControl'); class RoicMedyaAPI { constructor(apiKey) { this.apiKey = apiKey; this.baseURL = 'https://roicmedya.com/api/v2'; } async getServices() { return await getServices(this.apiKey, this.baseURL); } async getBalance() { return await getBalance(this.apiKey, this.baseURL); } async placeOrder(service, quantity, link) { return await placeOrder(this.apiKey, this.baseURL, service, quantity, link); } async trackOrder(orderId) { return await trackOrder(this.apiKey, this.baseURL, orderId); } async addCompensation(orderId) { return await addCompensation(this.apiKey, this.baseURL, orderId); } async trackCompensation(orderId) { return await trackCompensation(this.apiKey, this.baseURL, orderId); } async cancelOrder(orderId) { return await cancelOrder(this.apiKey, this.baseURL, orderId); } async serviceControl(serviceId) { return await serviceControl(this.apiKey, this.baseURL, serviceId); } async serviceRefillControl(serviceId) { return await serviceRefillControl(this.apiKey, this.baseURL, serviceId); } async serviceRefillTime(serviceId) { return await serviceRefillTime(this.apiKey, this.baseURL, serviceId); } async serviceCancelControl(serviceId) { return await serviceCancelControl(this.apiKey, this.baseURL, serviceId); } } module.exports = { RoicMedyaAPI };