UNPKG

@slrmyapi/mlreg

Version:

API untuk semakan ID Mobile Legends

32 lines (28 loc) 1.02 kB
const fetch = require('node-fetch'); async function getmlreg(userId, zoneId) { try { const url = `https://slrmyshop.us/tools/mlreg.php?userId=${encodeURIComponent(userId)}&zoneId=${encodeURIComponent(zoneId)}`; const response = await fetch(url); const data = await response.json(); // Tambah maklumat pemaju dalam respons data.devInfo = { GitHub: "https://github.com/slrmyshopofficial", NPM: "@slrmyapi/mlreg", WhatsApp: "+601136871190", Instagram: "@slrmyshopofficial" }; return data; } catch (error) { return { status: "error", message: error.message || "Gagal mendapatkan data MLBB", devInfo: { GitHub: "https://github.com/slrmyshopofficial", NPM: "@slrmyapi/mlreg", WhatsApp: "+601136871190", Instagram: "@slrmyshopofficial" } }; } } module.exports = { getmlreg };