skip to Main Content

Reactjs – How do I get data while sending body data using the GET axios method

const getSchool = async () => { const payload = { register: "1110000000000", id_tingkat_kelas: 11, list_id_produk: [ 1, 2, 3, 4, 5, 6, 7,8,9,10, 11, 13, 14, 15, 16 ] }; api.get(`${process.env.NEXT_PUBLIC_API_URL_ORIGIN}/mobile/v18/tobk/ujian-sekolah/all`, { headers: { "Content-Type": "application/json", "X-API-KEY": `${process.env.NEXT_PUBLIC_API_KEY}`, Authorization:…

VIEW QUESTION
Back To Top
Search