httpClient()
Last updated 1/10/2024
Example
The following code is creating an instance of the HTTPClient object using the
httpClient()
function on the Five
object.
Sending a GET request to example.website.com
function ExampleGetRequest(five: Five, context: any, result: FiveError) : FiveError {
const webClient = five.httpClient();
const webResult = webClient.get('https://example.website.com/api/notes');
return five.success(result);
}
Sending a GET request to example.website.com
function ExampleGetRequest(five, context, result) {
const webClient = five.httpClient();
const webResult = webClient.get('https://example.website.com/api/notes');
return five.success(result);
}