Module Assign NameStore Str Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Print Str Assign NameStore Num For NameStore AttributeLoad NameLoad attr body Print BinOpMod Str TupleLoad NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AugAssignAdd NameStore Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Print BinOpMod Str NameLoad Print Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Print Str Print Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Print BinOpMod Str NameLoad Expr Call NameLoad Str Print Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Print BinOpMod Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Print Str Expr Call AttributeLoad NameLoad attr Print Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Print Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Str ListLoad Str Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore Str For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad While UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str While UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A __author__ kunalmshah.userid (Kunal Shah) N/A sys N/A os.path N/A getopt N/A gdata.auth N/A gdata.docs.service OAuthSample N/A object N/A N/A An OAuthSample object demonstrates the three-legged OAuth process. __init__ N/A N/A self consumer_key consuer_secret N/A N/A N/A Constructor for the OAuthSample object.
    
    Takes a consumer key and consumer secret, authenticates using OAuth
    mechanism and lists the document titles using Document List Data API.
    Uses HMAC-SHA1 signature method.
    
    Args:
      consumer_key: string Domain identifying third_party web application.
      consumer_secret: string Secret generated during registration.
    
    Returns:
      An OAuthSample object used to run the sample demonstrating the
      way to use OAuth authentication mode.
     N/A N/A self consumer_key consumer_key N/A N/A self consumer_secret consuer_secret N/A N/A self gd_client N/A N/A N/A N/A gdata docs service DocsService N/A _PrintFeed N/A N/A self feed N/A N/A N/A Prints out the contents of a feed to the console.
   
    Args:
      feed: A gdata.docs.DocumentListFeed instance.
     N/A N/A N/A feed entry N/A N/A No entries in feed.
 N/A i 1 N/A entry N/A feed entry N/A N/A N/A %d. %s
 N/A i N/A N/A N/A N/A entry title text encode UTF-8 N/A i 1 N/A _ListAllDocuments N/A N/A self N/A N/A N/A Retrieves a list of all of a user's documents and displays them. N/A feed N/A N/A N/A self gd_client GetDocumentListFeed N/A N/A N/A self _PrintFeed feed N/A Run N/A N/A self N/A N/A N/A Demonstrates usage of OAuth authentication mode and retrieves a list of
    documents using Document List Data API. N/A 
STEP 1: Set OAuth input parameters. N/A N/A N/A N/A self gd_client SetOAuthInputParameters N/A N/A N/A gdata auth OAuthSignatureMethod HMAC_SHA1 N/A self consumer_key consumer_secret N/A self consumer_secret N/A 
STEP 2: Fetch OAuth Request token. N/A request_token N/A N/A N/A self gd_client FetchOAuthRequestToken N/A N/A Request Token fetched: %s request_token N/A 
STEP 3: Set the fetched OAuth token. N/A N/A N/A N/A self gd_client SetOAuthToken request_token N/A OAuth request token set. N/A 
STEP 4: Generate OAuth authorization URL. N/A auth_url N/A N/A N/A self gd_client GenerateOAuthAuthorizationURL N/A N/A Authorization URL: %s auth_url N/A N/A raw_input Manually go to the above URL and authenticate.Press a key after authorization. N/A 
STEP 5: Upgrade to an OAuth access token. N/A N/A N/A N/A self gd_client UpgradeToOAuthAccessToken N/A N/A Access Token: %s N/A N/A N/A N/A self gd_client token_store find_token N/A N/A request_token scopes N/A 0 N/A 
Your Documents:
 N/A N/A N/A self _ListAllDocuments N/A STEP 6: Revoke the OAuth access token after use. N/A N/A N/A N/A self gd_client RevokeOAuthToken N/A OAuth access token revoked. N/A N/A main N/A N/A N/A N/A N/A Demonstrates usage of OAuth authentication mode.
  
  Prints a list of documents. This demo uses HMAC-SHA1 signature method.
   N/A N/A N/A N/A opts args N/A N/A getopt getopt N/A N/A sys argv N/A 1 N/A consumer_key= consumer_secret= N/A N/A N/A N/A getopt error N/A msg N/A N/A python oauth_example.py --consumer_key [oauth_consumer_key] --consumer_secret [consumer_secret]  N/A N/A N/A sys exit 2 N/A consumer_key N/A consumer_secret N/A N/A option arg opts N/A N/A N/A option --consumer_key N/A N/A consumer_key arg N/A N/A N/A option --consumer_secret N/A N/A consumer_secret arg N/A N/A consumer_key N/A N/A consumer_key N/A raw_input Please enter consumer key:  N/A N/A consumer_secret N/A N/A consumer_secret N/A raw_input Please enter consumer secret:  N/A sample N/A OAuthSample consumer_key consumer_secret N/A N/A N/A sample Run N/A N/A N/A __name__ __main__ N/A N/A N/A main