Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: module oauth2client.clientsecrets</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 | <tr bgcolor="#7799ee"> |
| 8 | <td valign=bottom> <br> |
| 9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="oauth2client.html"><font color="#ffffff">oauth2client</font></a>.clientsecrets</strong></big></big></font></td |
| 10 | ><td align=right valign=bottom |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/apiclient-release/oauth2client/clientsecrets.py">/home/jcgregorio/projects/apiclient-release/oauth2client/clientsecrets.py</a></font></td></tr></table> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 12 | <p><tt>Utilities for reading OAuth 2.0 client secret files.<br> |
| 13 | <br> |
| 14 | A client_secrets.json file contains all the information needed to interact with<br> |
| 15 | an OAuth 2.0 protected service.</tt></p> |
| 16 | <p> |
| 17 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 18 | <tr bgcolor="#aa55cc"> |
| 19 | <td colspan=3 valign=bottom> <br> |
| 20 | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| 21 | |
| 22 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 23 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="simplejson.html">simplejson</a><br> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 24 | </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
| 25 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 26 | <tr bgcolor="#ee77aa"> |
| 27 | <td colspan=3 valign=bottom> <br> |
| 28 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| 29 | |
| 30 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| 31 | <td width="100%"><dl> |
| 32 | <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) |
| 33 | </font></dt><dd> |
| 34 | <dl> |
| 35 | <dt><font face="helvetica, arial"><a href="oauth2client.clientsecrets.html#Error">Error</a> |
| 36 | </font></dt><dd> |
| 37 | <dl> |
| 38 | <dt><font face="helvetica, arial"><a href="oauth2client.clientsecrets.html#InvalidClientSecretsError">InvalidClientSecretsError</a> |
| 39 | </font></dt></dl> |
| 40 | </dd> |
| 41 | </dl> |
| 42 | </dd> |
| 43 | </dl> |
| 44 | <p> |
| 45 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 46 | <tr bgcolor="#ffc8d8"> |
| 47 | <td colspan=3 valign=bottom> <br> |
| 48 | <font color="#000000" face="helvetica, arial"><a name="Error">class <strong>Error</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> |
| 49 | |
| 50 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 51 | <td colspan=2><tt>Base error for this module.<br> </tt></td></tr> |
| 52 | <tr><td> </td> |
| 53 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 54 | <dd><a href="oauth2client.clientsecrets.html#Error">Error</a></dd> |
| 55 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 56 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 57 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 58 | </dl> |
| 59 | <hr> |
| 60 | Data descriptors defined here:<br> |
| 61 | <dl><dt><strong>__weakref__</strong></dt> |
| 62 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 63 | </dl> |
| 64 | <hr> |
| 65 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 66 | <dl><dt><a name="Error-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 67 | |
| 68 | <hr> |
| 69 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 70 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Error-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> |
| 71 | |
| 72 | <hr> |
| 73 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 74 | <dl><dt><a name="Error-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 75 | |
| 76 | <dl><dt><a name="Error-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 77 | |
| 78 | <dl><dt><a name="Error-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 79 | |
| 80 | <dl><dt><a name="Error-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 81 | <br> |
| 82 | Use of negative indices is not supported.</tt></dd></dl> |
| 83 | |
| 84 | <dl><dt><a name="Error-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 85 | |
| 86 | <dl><dt><a name="Error-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> |
| 87 | |
| 88 | <dl><dt><a name="Error-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 89 | |
| 90 | <dl><dt><a name="Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 91 | |
| 92 | <dl><dt><a name="Error-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__str__">__str__</a>() <==> str(x)</tt></dd></dl> |
| 93 | |
| 94 | <dl><dt><a name="Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 95 | |
| 96 | <hr> |
| 97 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 98 | <dl><dt><strong>__dict__</strong></dt> |
| 99 | </dl> |
| 100 | <dl><dt><strong>args</strong></dt> |
| 101 | </dl> |
| 102 | <dl><dt><strong>message</strong></dt> |
| 103 | </dl> |
| 104 | </td></tr></table> <p> |
| 105 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 106 | <tr bgcolor="#ffc8d8"> |
| 107 | <td colspan=3 valign=bottom> <br> |
| 108 | <font color="#000000" face="helvetica, arial"><a name="InvalidClientSecretsError">class <strong>InvalidClientSecretsError</strong></a>(<a href="oauth2client.clientsecrets.html#Error">Error</a>)</font></td></tr> |
| 109 | |
| 110 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 111 | <td colspan=2><tt>Format of ClientSecrets file is invalid.<br> </tt></td></tr> |
| 112 | <tr><td> </td> |
| 113 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 114 | <dd><a href="oauth2client.clientsecrets.html#InvalidClientSecretsError">InvalidClientSecretsError</a></dd> |
| 115 | <dd><a href="oauth2client.clientsecrets.html#Error">Error</a></dd> |
| 116 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 117 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 118 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 119 | </dl> |
| 120 | <hr> |
| 121 | Data descriptors inherited from <a href="oauth2client.clientsecrets.html#Error">Error</a>:<br> |
| 122 | <dl><dt><strong>__weakref__</strong></dt> |
| 123 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 124 | </dl> |
| 125 | <hr> |
| 126 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 127 | <dl><dt><a name="InvalidClientSecretsError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 128 | |
| 129 | <hr> |
| 130 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 131 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#InvalidClientSecretsError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> |
| 132 | |
| 133 | <hr> |
| 134 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 135 | <dl><dt><a name="InvalidClientSecretsError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 136 | |
| 137 | <dl><dt><a name="InvalidClientSecretsError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 138 | |
| 139 | <dl><dt><a name="InvalidClientSecretsError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 140 | |
| 141 | <dl><dt><a name="InvalidClientSecretsError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 142 | <br> |
| 143 | Use of negative indices is not supported.</tt></dd></dl> |
| 144 | |
| 145 | <dl><dt><a name="InvalidClientSecretsError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 146 | |
| 147 | <dl><dt><a name="InvalidClientSecretsError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> |
| 148 | |
| 149 | <dl><dt><a name="InvalidClientSecretsError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 150 | |
| 151 | <dl><dt><a name="InvalidClientSecretsError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 152 | |
| 153 | <dl><dt><a name="InvalidClientSecretsError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#InvalidClientSecretsError-__str__">__str__</a>() <==> str(x)</tt></dd></dl> |
| 154 | |
| 155 | <dl><dt><a name="InvalidClientSecretsError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 156 | |
| 157 | <hr> |
| 158 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 159 | <dl><dt><strong>__dict__</strong></dt> |
| 160 | </dl> |
| 161 | <dl><dt><strong>args</strong></dt> |
| 162 | </dl> |
| 163 | <dl><dt><strong>message</strong></dt> |
| 164 | </dl> |
| 165 | </td></tr></table></td></tr></table><p> |
| 166 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 167 | <tr bgcolor="#eeaa77"> |
| 168 | <td colspan=3 valign=bottom> <br> |
| 169 | <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> |
| 170 | |
| 171 | <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> |
| 172 | <td width="100%"><dl><dt><a name="-load"><strong>load</strong></a>(fp)</dt></dl> |
| 173 | <dl><dt><a name="-loadfile"><strong>loadfile</strong></a>(filename)</dt></dl> |
| 174 | <dl><dt><a name="-loads"><strong>loads</strong></a>(s)</dt></dl> |
| 175 | </td></tr></table><p> |
| 176 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 177 | <tr bgcolor="#55aa55"> |
| 178 | <td colspan=3 valign=bottom> <br> |
| 179 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 180 | |
| 181 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
| 182 | <td width="100%"><strong>TYPE_INSTALLED</strong> = 'installed'<br> |
| 183 | <strong>TYPE_WEB</strong> = 'web'<br> |
| 184 | <strong>VALID_CLIENT</strong> = {'installed': {'required': ['client_id', 'client_secret', 'redirect_uris', 'auth_uri', 'token_uri'], 'string': ['client_id', 'client_secret']}, 'web': {'required': ['client_id', 'client_secret', 'redirect_uris', 'auth_uri', 'token_uri'], 'string': ['client_id', 'client_secret']}}<br> |
| 185 | <strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p> |
| 186 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 187 | <tr bgcolor="#7799ee"> |
| 188 | <td colspan=3 valign=bottom> <br> |
| 189 | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> |
| 190 | |
| 191 | <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> |
| 192 | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> |
| 193 | </body></html> |