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
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))
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))