def movesCallback(code, state, our_uuid): logging.debug('code: '+ code + ' state: '+ state + 'user: '******'state = %s with length %d' % (state, len(state))) if (len(state) == 0): # This is from iOS, we use the custom redirect URL redirectUrl = ios_redirect_url else: # This is from android, so we use the HTTPS one redirectUrl = https_redirect_url m = Moves(client_id = client_id, client_secret = client_secret, redirect_url = redirectUrl) token = m.auth(request_token = code) logging.debug("token = %s" % token) moves_access_info = m.access_json logging.debug("Response from moves = %s" % moves_access_info) # We got a good response from moves. # Now we generate a uuid saveAccessToken(moves_access_info, our_uuid)
def movesCallback(code, state, our_uuid): logging.debug('code: ' + code + ' state: ' + state + 'user: '******'state = %s with length %d' % (state, len(state))) if (len(state) == 0): # This is from iOS, we use the custom redirect URL redirectUrl = ios_redirect_url else: # This is from android, so we use the HTTPS one redirectUrl = https_redirect_url m = Moves(client_id=client_id, client_secret=client_secret, redirect_url=redirectUrl) token = m.auth(request_token=code) logging.debug("token = %s" % token) moves_access_info = m.access_json logging.debug("Response from moves = %s" % moves_access_info) # We got a good response from moves. # Now we generate a uuid saveAccessToken(moves_access_info, our_uuid)