UNPKG

@jkt48connect-corp/sdk

Version:

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

10 lines (7 loc) 370 B
const fetchData = require("../utils/fetchData"); async function Pinterest(apiKey, query) { const apiUrl = `https://api.jkt48connect.my.id/api/pin?query=${encodeURIComponent(query)}&api_key=${apiKey}`; const response = await fetchData(apiUrl); // Mendapatkan data dari API return response; // Mengembalikan respons data langsung } module.exports = { Pinterest };