Hi
I want to integrate the REST API with WIX.
I have to pull a image using the Rest API and display on the website.
Check out fetch on the corvid reference sheet.
Also, if just an age hosted on a server somewhere else and has a url that just returns the image, you could just set the image.url to the external url.
It would seem to me you can not.
You can only parse the body as JSON or Text, where normally you would use arrayBuffer or blob
Unfortunately a wixResponse doesn’t contain everything that used to be there in a normal Response object.
Also XMLHttpRequest is not available in Wix Namespace. So good luck finding a third party lib.