UNPKG

jkt48connect-cli

Version:

CLI dan modul untuk mengakses data dari API JKT48Connect, termasuk data member, teater, event, pembayaran, dan lainnya.

16 lines (12 loc) 621 B
const fetchData = require("../utils/fetchData"); async function getTheater(apiKey) { const url = `https://api.jkt48connect.my.id/api/theater?api_key=${apiKey}`; const response = await fetchData(url); // Mendapatkan data dari API return response; // Mengembalikan respons data langsung } async function getTheaterDetail(apiKey, theaterId) { const url = `https://api.jkt48connect.my.id/api/theater/${theaterId}?api_key=${apiKey}`; const response = await fetchData(url); // Mendapatkan data dari API return response; // Mengembalikan respons data langsung } module.exports = { getTheater, getTheaterDetail };