예제 #1
0
def insert_user():

    respose_api = ResponseAPI()
    result = firebase.post('/users', request.get_data())
    respose_api.success = True
    return json.dumps(respose_api.__dict__)
예제 #2
0
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)
예제 #3
0
def insert_user():

    respose_api = ResponseAPI()
    result = firebase.post('/users', request.get_data())
    respose_api.success = True
    return json.dumps(respose_api.__dict__)