<s> '''<STR_LIT>''' <EOL> try : <EOL> read_input = raw_input <EOL> except NameError : <EOL> read_input = input <EOL> import Kuaipan <EOL> consumer_key = '<STR_LIT>' <EOL> consumer_secret = '<STR_LIT>' <EOL> kuaipan_oauth = Kuaipan . KuaipanOAuth ( consumer_key , consumer_secret ) <EOL> request_token = kuaipan_oauth . GetRequestToken ( ) <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" % request_token [ '<STR_LIT>' ] <EOL> print "<STR_LIT>" % request_token [ '<STR_LIT>' ] <EOL> print <EOL> print "<STR_LIT>" <EOL> print kuaipan_oauth . AuthenticationUrl <EOL> print <EOL> import platform <EOL> if cmp ( platform . system ( ) , "<STR_LIT>" ) == <NUM_LIT:0> : <EOL> import webbrowser <EOL> webbrowser . open ( kuaipan_oauth . AuthenticationUrl ) <EOL> accepted = '<STR_LIT:n>' <EOL> while accepted . lower ( ) == '<STR_LIT:n>' : <EOL> accepted = read_input ( '<STR_LIT>' ) <EOL> oauth_verifier = read_input ( '<STR_LIT>' ) <EOL> access_token = kuaipan_oauth . GetAccessToken ( oauth_verifier ) <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" % access_token [ '<STR_LIT>' ] <EOL> print "<STR_LIT>" % access_token [ '<STR_LIT>' ] <EOL> print <EOL> print "<STR_LIT>" <EOL> print </s>
