Пример #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
Пример #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))
Пример #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))