def _send_firebase_message(u_id, message=None):
 url = '{}/channels/{}.json'.format(_get_firebase_db_url(), u_id)
 if message:
  return _get_http().request(url, 'PATCH', body=message)
 else:
  return _get_http().request(url, 'DELETE')

def _send_firebase_message ( u_id , message = None ) : url = '{}/channels/{}.json' . format ( _get_firebase_db_url ( ) , u_id ) if message : return _get_http ( ) . request ( url , 'PATCH' , body = message ) else : return _get_http ( ) . request ( url , 'DELETE' )
updates data in firebase .