The API provider has stated in their documentation that the way to do this in cURL is
curl -H 'client-id: <CLIENT_ID>' \
-H 'client-secret: <CLIENT_SECRET>' \
-H 'Accept-Language: en_US' \
-H 'Content-Type: application/json' \
'https://<dunzo_host>/api/v1/token'
I never use cURL but it is my understanding that -H means extra header and I tried to make this request in wix using my getJSON as headers. Is my understanding of this even correct?
Anyways, I think I need to understand this a little better first before posting. I will get back to this thread later if I haven’t the right way to do it. It seems I need to get a access token first before making fetch requests so I could have skipped some steps.