def parse(source): dic = oauth.parsewwwformurlencoded(source) return AccessToken(dic["oauth_token"], dic["oauth_token_secret"], dic["user_id"], dic["screen_name"])
def parse(source): dic = oauth.parsewwwformurlencoded(source) return OAuthToken(dic["oauth_token"], dic["oauth_token_secret"])