<s> from rauth . service import OAuth2Service <EOL> github = OAuth2Service ( <EOL> client_id = '<STR_LIT>' , <EOL> client_secret = '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> authorize_url = '<STR_LIT>' , <EOL> access_token_url = '<STR_LIT>' , <EOL> base_url = '<STR_LIT>' ) <EOL> print '<STR_LIT>' + github . get_authorize_url ( ) <EOL> code = raw_input ( '<STR_LIT>' ) <EOL> data = dict ( code = code , redirect_uri = '<STR_LIT>' ) <EOL> session = github . get_auth_session ( data = data ) <EOL> user = session . get ( '<STR_LIT:user>' ) . json ( ) <EOL> print '<STR_LIT>' + user [ '<STR_LIT>' ] </s>
