Ejemplo n.º 1
0
def userCreateApi(request):
        userkey = datastores.createUser(request.email, request.pswd,
                                        str(request.code))  # create user from requests object

        return uber_api.keySearch(key=userkey)  # returns userkey to frontend
Ejemplo n.º 2
0
def createRideApi(request):
    ride = datastores.createRide(
        request.ukey, request.slong, request.slat, request.elong, request.elat, request.time, request.userKey
    )
    print ride
    return uber_api.keySearch(key=int(ride))
Ejemplo n.º 3
0
def createRideApi(request):
    ride = datastores.createRide(request.ukey, request.slong, request.slat,
                                 request.elong, request.elat, request.time,
                                 request.userKey)
    print ride
    return uber_api.keySearch(key=int(ride))