ESP8266 REST Client
Supporting Protocols
- HTTP
- HTTPS
Supporting Methods
- GET
- POST
- PUT
- PATCH
- DELETE
This client uses BearSSL Secure wifi client for the HTTPS connections.
#include <RestClient.h>
...
void setup()
{
// Connect to WIFI
...
// Create a REST Client for http://reqres.in/api/
RestClient client("reqres.in", 80, "http", "/api/");
String response;
client.get("users/2", &response);
Serial.println(response);
}
void loop()
{
}
#include <RestClient.h>
...
void setup()
{
// Connect to WIFI
...
// Create a REST Client for https://reqres.in/api/
RestClient client("reqres.in", 443, "https", "/api/");
String response;
client.get("users/2", &response);
Serial.println(response);
}
void loop()
{
}