REQUEST
curl https://api.read.entrfy.com/v1/batches/bat_01JCZC00000000000000000004/exports/xlsx \
-H "Authorization: Bearer er_test_ORNEK0000000000000000000000" \
-OJ
const res = await fetch('https://api.read.entrfy.com/v1/batches/bat_01JCZC00000000000000000004/exports/xlsx', {
headers: {
Authorization: 'Bearer er_test_ORNEK0000000000000000000000',
},
});
const file = Buffer.from(await res.arrayBuffer());
import requests
res = requests.get(
"https://api.read.entrfy.com/v1/batches/bat_01JCZC00000000000000000004/exports/xlsx",
headers={"Authorization": "Bearer er_test_ORNEK0000000000000000000000"},
)
data = res.content
The response is a file (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet).