The URL to send the GET request to.
Optional
params: anyOptional query parameters to be appended to the URL.
Optional
Optional
token: stringOptional token to be included in the Authorization header.
Optional
The response from the GET request.
const response = await sendGet('https://api.example.com/data', { q: 'searchTerm' }, 'mytoken123');
const data = await response.json();
console.log(data);
Will throw an error if the GET request fails.
Generated using TypeDoc
Sends a GET request to a specified URL with optional parameters and Bearer Token. Content-Type is set to application/json.