Curl Command in Javascript

Sorry i dont understand.

i just want data from a stream via the API in the browser. I already have my access token