def OAuthTokenFromUrl(url, scopes_param_prefix='oauth_token_scope'):
  if isinstance(url, (str, unicode)):
    url = atom.url.parse_url(url)
  if 'oauth_token' not in url.params:
    return None
  scopes = []
  if scopes_param_prefix in url.params:
    scopes = url.params[scopes_param_prefix].split(' ')
  token_key = url.params['oauth_token']
  token = OAuthToken(key=token_key, scopes=scopes)
  return token
Expect to get a list of the user's sets.
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/auth.py/OAuthTokenFromUrl--crossover with--dataset/ETHPy150Open heiskr/sagefy/server/test/test_routes_user_sets.py/test_get_user_sets