Skip to content

Instantly share code, notes, and snippets.

@alexastrum
Created July 29, 2020 21:38
Show Gist options
  • Save alexastrum/5d55a23c4a7ea37934b99be5e0d2a65f to your computer and use it in GitHub Desktop.
Save alexastrum/5d55a23c4a7ea37934b99be5e0d2a65f to your computer and use it in GitHub Desktop.
String host = String(PROJECT_ID) + ".firebaseio.com";
WiFiSSLClient wifiClient;
HttpClient httpClient = HttpClient(wifiClient, host, 443);
String url = "/" + path + ".json";
httpClient.put(url, "application/json", jsonStr);
int statusCode = httpClient.responseStatusCode();
String response = httpClient.responseBody();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment