def insert_user(): respose_api = ResponseAPI() result = firebase.post('/users', request.get_data()) respose_api.success = True return json.dumps(respose_api.__dict__)
from firebase import firebase from respose import ResponseAPI import json # firebase = firebase.FirebaseApplication('https://usertestjgabrielfreitas.firebaseio.com/', None) # new_user = '******' # # result = firebase.post('/users', new_user) # print result response = ResponseAPI() response.success = True string_test = json.dumps(response.__dict__) print(string_test)