|  |  | 
|  | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 
|  | <html><head><title>Python: module oauth2client.tools</title> | 
|  | </head><body bgcolor="#f0f0f8"> | 
|  |  | 
|  | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | 
|  | <tr bgcolor="#7799ee"> | 
|  | <td valign=bottom> <br> | 
|  | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="oauth2client.html"><font color="#ffffff">oauth2client</font></a>.tools</strong></big></big></font></td | 
|  | ><td align=right valign=bottom | 
|  | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/clean/oauth2client/tools.py">/home/jcgregorio/projects/clean/oauth2client/tools.py</a></font></td></tr></table> | 
|  | <p><tt>Command-line tools for authenticating via OAuth 2.0<br> | 
|  |  <br> | 
|  | Do the OAuth 2.0 Web Server dance for a command line application. Stores the<br> | 
|  | generated credentials in a common file that is used by other example apps in<br> | 
|  | the same directory.</tt></p> | 
|  | <p> | 
|  | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 
|  | <tr bgcolor="#aa55cc"> | 
|  | <td colspan=3 valign=bottom> <br> | 
|  | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> | 
|  |  | 
|  | <tr><td bgcolor="#aa55cc"><tt>      </tt></td><td> </td> | 
|  | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="BaseHTTPServer.html">BaseHTTPServer</a><br> | 
|  | <a href="gflags.html">gflags</a><br> | 
|  | </td><td width="25%" valign=top><a href="socket.html">socket</a><br> | 
|  | <a href="sys.html">sys</a><br> | 
|  | </td><td width="25%" valign=top><a href="webbrowser.html">webbrowser</a><br> | 
|  | </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | 
|  | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 
|  | <tr bgcolor="#eeaa77"> | 
|  | <td colspan=3 valign=bottom> <br> | 
|  | <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> | 
|  |  | 
|  | <tr><td bgcolor="#eeaa77"><tt>      </tt></td><td> </td> | 
|  | <td width="100%"><dl><dt><a name="-run"><strong>run</strong></a>(flow, storage, http<font color="#909090">=None</font>)</dt><dd><tt>Core code for a command-line application.<br> | 
|  |  <br> | 
|  | Args:<br> | 
|  |   flow: Flow, an OAuth 2.0 Flow to step through.<br> | 
|  |   storage: Storage, a Storage to store the credential in.<br> | 
|  |   http: An instance of httplib2.Http.request<br> | 
|  |        or something that acts like it.<br> | 
|  |  <br> | 
|  | Returns:<br> | 
|  |   Credentials, the obtained credential.</tt></dd></dl> | 
|  | </td></tr></table><p> | 
|  | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 
|  | <tr bgcolor="#55aa55"> | 
|  | <td colspan=3 valign=bottom> <br> | 
|  | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> | 
|  |  | 
|  | <tr><td bgcolor="#55aa55"><tt>      </tt></td><td> </td> | 
|  | <td width="100%"><strong>__all__</strong> = ['run']<br> | 
|  | <strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p> | 
|  | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 
|  | <tr bgcolor="#7799ee"> | 
|  | <td colspan=3 valign=bottom> <br> | 
|  | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> | 
|  |  | 
|  | <tr><td bgcolor="#7799ee"><tt>      </tt></td><td> </td> | 
|  | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> | 
|  | </body></html> |