File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ void Firebase::remove(const String& path) {
41
41
sendRequest (" DELETE" , path);
42
42
}
43
43
44
+ String Firebase::set (const String& path, const String& value) {
45
+ sendRequest (" PUT" , path, value);
46
+ return readBody ();
47
+ }
48
+
44
49
Firebase& Firebase::stream (const String& path) {
45
50
_error.reset ();
46
51
String url = makeURL (path);
Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ class Firebase {
51
51
return _error;
52
52
}
53
53
String get (const String& path);
54
+ // write a new JSON `value` to the given `path`.
55
+ // Note: A String `value` must include double quotes to be valid json.
56
+ String set (const String& path, const String& value);
57
+ // append a new JSON `value` to the given `path`.
58
+ // Note: A String `value` must include double quotes to be valid json.
54
59
String push (const String& path, const String& value);
55
60
void remove (const String& path);
56
61
bool connected ();
You can’t perform that action at this time.
0 commit comments