ozgur/python-firebase

update of data with firebase.post

SojueIsrem opened this issue · 4 comments

I need to update to be in a particular address, I do not want to create new addresses as it is with firebase.post ()
I want to update the last date it was updated in the following address
firebase.post('dato',"14/02/2018")

I also want to do same kind of operation , want to update child value not to add new node to child but i guess this api doesn't provide that functionality so far.
firebase.post('/sensor/sensorF', '1' ) for ON
firebase.post('/sensor/sensorF', '0' ) for OFF
i am working on a sensor based project.

use firebase.put function
put(self, url, name, data, connection, params=None, headers=None): """ Synchronous PUT request. There will be no returning output from the server, because the request will be made with ``silent`` parameter. ``data`` must be a JSONable value. """

@tabebqena Could you get us an example about use put method, please? Right now I would like to use it, I have done some tries but I have no success.

@CarMoreno
I didn't use it long time ago, Could you please refer to the source code .

Put method