Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: module apiclient.oauth</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="apiclient.html"><font color="#ffffff">apiclient</font></a>.oauth</strong></big></big></font></td |
| 10 | ><td align=right valign=bottom |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame^] | 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/local/google/home/jcgregorio/projects/apiclient/apiclient/oauth.py">/usr/local/google/home/jcgregorio/projects/apiclient/apiclient/oauth.py</a></font></td></tr></table> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 12 | <p><tt>Utilities for OAuth.<br> |
| 13 | <br> |
| 14 | Utilities for making it easier to work with OAuth.</tt></p> |
| 15 | <p> |
| 16 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 17 | <tr bgcolor="#aa55cc"> |
| 18 | <td colspan=3 valign=bottom> <br> |
| 19 | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| 20 | |
| 21 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
| 22 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="copy.html">copy</a><br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 23 | <a href="httplib2.html">httplib2</a><br> |
| 24 | </td><td width="25%" valign=top><a href="logging.html">logging</a><br> |
| 25 | <a href="oauth2.html">oauth2</a><br> |
| 26 | </td><td width="25%" valign=top><a href="simplejson.html">simplejson</a><br> |
| 27 | <a href="urllib.html">urllib</a><br> |
| 28 | </td><td width="25%" valign=top><a href="urlparse.html">urlparse</a><br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 29 | </td></tr></table></td></tr></table><p> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 30 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 31 | <tr bgcolor="#ee77aa"> |
| 32 | <td colspan=3 valign=bottom> <br> |
| 33 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| 34 | |
| 35 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| 36 | <td width="100%"><dl> |
| 37 | <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> |
| 38 | </font></dt><dd> |
| 39 | <dl> |
| 40 | <dt><font face="helvetica, arial"><a href="apiclient.oauth.html#Credentials">Credentials</a> |
| 41 | </font></dt><dd> |
| 42 | <dl> |
| 43 | <dt><font face="helvetica, arial"><a href="apiclient.oauth.html#OAuthCredentials">OAuthCredentials</a> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 44 | </font></dt><dt><font face="helvetica, arial"><a href="apiclient.oauth.html#TwoLeggedOAuthCredentials">TwoLeggedOAuthCredentials</a> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 45 | </font></dt></dl> |
| 46 | </dd> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 47 | <dt><font face="helvetica, arial"><a href="apiclient.oauth.html#Flow">Flow</a> |
| 48 | </font></dt><dd> |
| 49 | <dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 50 | <dt><font face="helvetica, arial"><a href="apiclient.oauth.html#FlowThreeLegged">FlowThreeLegged</a> |
| 51 | </font></dt></dl> |
| 52 | </dd> |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 53 | <dt><font face="helvetica, arial"><a href="apiclient.oauth.html#Storage">Storage</a> |
| 54 | </font></dt></dl> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 55 | </dd> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 56 | <dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) |
| 57 | </font></dt><dd> |
| 58 | <dl> |
| 59 | <dt><font face="helvetica, arial"><a href="apiclient.oauth.html#Error">Error</a> |
| 60 | </font></dt><dd> |
| 61 | <dl> |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 62 | <dt><font face="helvetica, arial"><a href="apiclient.oauth.html#CredentialsInvalidError">CredentialsInvalidError</a> |
| 63 | </font></dt><dt><font face="helvetica, arial"><a href="apiclient.oauth.html#MissingParameter">MissingParameter</a> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 64 | </font></dt><dt><font face="helvetica, arial"><a href="apiclient.oauth.html#RequestError">RequestError</a> |
| 65 | </font></dt></dl> |
| 66 | </dd> |
| 67 | </dl> |
| 68 | </dd> |
| 69 | </dl> |
| 70 | <p> |
| 71 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 72 | <tr bgcolor="#ffc8d8"> |
| 73 | <td colspan=3 valign=bottom> <br> |
| 74 | <font color="#000000" face="helvetica, arial"><a name="Credentials">class <strong>Credentials</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 75 | |
| 76 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 77 | <td colspan=2><tt>Base class for all <a href="#Credentials">Credentials</a> objects.<br> |
| 78 | <br> |
| 79 | Subclasses must define an <a href="#Credentials-authorize">authorize</a>() method<br> |
| 80 | that applies the credentials to an HTTP transport.<br> </tt></td></tr> |
| 81 | <tr><td> </td> |
| 82 | <td width="100%">Methods defined here:<br> |
| 83 | <dl><dt><a name="Credentials-authorize"><strong>authorize</strong></a>(self, http)</dt><dd><tt>Take an httplib2.Http instance (or equivalent) and<br> |
| 84 | authorizes it for the set of credentials, usually by<br> |
| 85 | replacing http.request() with a method that adds in<br> |
| 86 | the appropriate headers and then delegates to the original<br> |
| 87 | Http.request() method.</tt></dd></dl> |
| 88 | |
| 89 | <hr> |
| 90 | Data descriptors defined here:<br> |
| 91 | <dl><dt><strong>__dict__</strong></dt> |
| 92 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 93 | </dl> |
| 94 | <dl><dt><strong>__weakref__</strong></dt> |
| 95 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 96 | </dl> |
| 97 | </td></tr></table> <p> |
| 98 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 99 | <tr bgcolor="#ffc8d8"> |
| 100 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 101 | <font color="#000000" face="helvetica, arial"><a name="CredentialsInvalidError">class <strong>CredentialsInvalidError</strong></a>(<a href="apiclient.oauth.html#Error">Error</a>)</font></td></tr> |
| 102 | |
| 103 | <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
| 104 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 105 | <dd><a href="apiclient.oauth.html#CredentialsInvalidError">CredentialsInvalidError</a></dd> |
| 106 | <dd><a href="apiclient.oauth.html#Error">Error</a></dd> |
| 107 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 108 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 109 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 110 | </dl> |
| 111 | <hr> |
| 112 | Data descriptors inherited from <a href="apiclient.oauth.html#Error">Error</a>:<br> |
| 113 | <dl><dt><strong>__weakref__</strong></dt> |
| 114 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 115 | </dl> |
| 116 | <hr> |
| 117 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame] | 118 | <dl><dt><a name="CredentialsInvalidError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 119 | |
| 120 | <hr> |
| 121 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 122 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#CredentialsInvalidError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> |
| 123 | |
| 124 | <hr> |
| 125 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 126 | <dl><dt><a name="CredentialsInvalidError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 127 | |
| 128 | <dl><dt><a name="CredentialsInvalidError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 129 | |
| 130 | <dl><dt><a name="CredentialsInvalidError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 131 | |
| 132 | <dl><dt><a name="CredentialsInvalidError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 133 | <br> |
| 134 | Use of negative indices is not supported.</tt></dd></dl> |
| 135 | |
| 136 | <dl><dt><a name="CredentialsInvalidError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 137 | |
| 138 | <dl><dt><a name="CredentialsInvalidError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> |
| 139 | |
| 140 | <dl><dt><a name="CredentialsInvalidError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 141 | |
| 142 | <dl><dt><a name="CredentialsInvalidError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 143 | |
| 144 | <dl><dt><a name="CredentialsInvalidError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#CredentialsInvalidError-__str__">__str__</a>() <==> str(x)</tt></dd></dl> |
| 145 | |
| 146 | <dl><dt><a name="CredentialsInvalidError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 147 | |
| 148 | <hr> |
| 149 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 150 | <dl><dt><strong>__dict__</strong></dt> |
| 151 | </dl> |
| 152 | <dl><dt><strong>args</strong></dt> |
| 153 | </dl> |
| 154 | <dl><dt><strong>message</strong></dt> |
| 155 | </dl> |
| 156 | </td></tr></table> <p> |
| 157 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 158 | <tr bgcolor="#ffc8d8"> |
| 159 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 160 | <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> |
| 161 | |
| 162 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 163 | <td colspan=2><tt>Base error for this module.<br> </tt></td></tr> |
| 164 | <tr><td> </td> |
| 165 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 166 | <dd><a href="apiclient.oauth.html#Error">Error</a></dd> |
| 167 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 168 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 169 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 170 | </dl> |
| 171 | <hr> |
| 172 | Data descriptors defined here:<br> |
| 173 | <dl><dt><strong>__weakref__</strong></dt> |
| 174 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 175 | </dl> |
| 176 | <hr> |
| 177 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame] | 178 | <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 | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 179 | |
| 180 | <hr> |
| 181 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 182 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Error-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> |
| 183 | |
| 184 | <hr> |
| 185 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 186 | <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> |
| 187 | |
| 188 | <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> |
| 189 | |
| 190 | <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> |
| 191 | |
| 192 | <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> |
| 193 | <br> |
| 194 | Use of negative indices is not supported.</tt></dd></dl> |
| 195 | |
| 196 | <dl><dt><a name="Error-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 197 | |
| 198 | <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> |
| 199 | |
| 200 | <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> |
| 201 | |
| 202 | <dl><dt><a name="Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 203 | |
| 204 | <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> |
| 205 | |
| 206 | <dl><dt><a name="Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 207 | |
| 208 | <hr> |
| 209 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 210 | <dl><dt><strong>__dict__</strong></dt> |
| 211 | </dl> |
| 212 | <dl><dt><strong>args</strong></dt> |
| 213 | </dl> |
| 214 | <dl><dt><strong>message</strong></dt> |
| 215 | </dl> |
| 216 | </td></tr></table> <p> |
| 217 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 218 | <tr bgcolor="#ffc8d8"> |
| 219 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 220 | <font color="#000000" face="helvetica, arial"><a name="Flow">class <strong>Flow</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 221 | |
| 222 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 223 | <td colspan=2><tt>Base class for all <a href="#Flow">Flow</a> objects.<br> </tt></td></tr> |
| 224 | <tr><td> </td> |
| 225 | <td width="100%">Data descriptors defined here:<br> |
| 226 | <dl><dt><strong>__dict__</strong></dt> |
| 227 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 228 | </dl> |
| 229 | <dl><dt><strong>__weakref__</strong></dt> |
| 230 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 231 | </dl> |
| 232 | </td></tr></table> <p> |
| 233 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 234 | <tr bgcolor="#ffc8d8"> |
| 235 | <td colspan=3 valign=bottom> <br> |
| 236 | <font color="#000000" face="helvetica, arial"><a name="FlowThreeLegged">class <strong>FlowThreeLegged</strong></a>(<a href="apiclient.oauth.html#Flow">Flow</a>)</font></td></tr> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 237 | |
| 238 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 239 | <td colspan=2><tt>Does the Three Legged Dance for OAuth 1.0a.<br> </tt></td></tr> |
| 240 | <tr><td> </td> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 241 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 242 | <dd><a href="apiclient.oauth.html#FlowThreeLegged">FlowThreeLegged</a></dd> |
| 243 | <dd><a href="apiclient.oauth.html#Flow">Flow</a></dd> |
| 244 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 245 | </dl> |
| 246 | <hr> |
| 247 | Methods defined here:<br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 248 | <dl><dt><a name="FlowThreeLegged-__init__"><strong>__init__</strong></a>(self, discovery, consumer_key, consumer_secret, user_agent, **kwargs)</dt><dd><tt>discovery - Section of the API discovery document that describes<br> |
| 249 | the OAuth endpoints.<br> |
| 250 | consumer_key - OAuth consumer key<br> |
| 251 | consumer_secret - OAuth consumer secret<br> |
| 252 | user_agent - The HTTP User-Agent that identifies the application.<br> |
| 253 | **kwargs - The keyword arguments are all optional and required<br> |
| 254 | parameters for the OAuth calls.</tt></dd></dl> |
| 255 | |
| 256 | <dl><dt><a name="FlowThreeLegged-step1_get_authorize_url"><strong>step1_get_authorize_url</strong></a>(self, oauth_callback<font color="#909090">='oob'</font>)</dt><dd><tt>Returns a URI to redirect to the provider.<br> |
| 257 | <br> |
| 258 | oauth_callback - Either the string 'oob' for a non-web-based application,<br> |
| 259 | or a URI that handles the callback from the authorization<br> |
| 260 | server.<br> |
| 261 | <br> |
| 262 | If oauth_callback is 'oob' then pass in the<br> |
| 263 | generated verification code to step2_exchange,<br> |
| 264 | otherwise pass in the query parameters received<br> |
| 265 | at the callback uri to step2_exchange.</tt></dd></dl> |
| 266 | |
| 267 | <dl><dt><a name="FlowThreeLegged-step2_exchange"><strong>step2_exchange</strong></a>(self, verifier)</dt><dd><tt>Exhanges an authorized request token<br> |
| 268 | for <a href="#OAuthCredentials">OAuthCredentials</a>.<br> |
| 269 | <br> |
Joe Gregorio | 4258d6b | 2011-03-18 10:20:16 -0400 | [diff] [blame] | 270 | Args:<br> |
| 271 | verifier: string, dict - either the verifier token, or a dictionary<br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 272 | of the query parameters to the callback, which contains<br> |
Joe Gregorio | 4258d6b | 2011-03-18 10:20:16 -0400 | [diff] [blame] | 273 | the oauth_verifier.<br> |
| 274 | Returns:<br> |
| 275 | The <a href="#Credentials">Credentials</a> <a href="__builtin__.html#object">object</a>.</tt></dd></dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 276 | |
| 277 | <hr> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 278 | Data descriptors inherited from <a href="apiclient.oauth.html#Flow">Flow</a>:<br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 279 | <dl><dt><strong>__dict__</strong></dt> |
| 280 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 281 | </dl> |
| 282 | <dl><dt><strong>__weakref__</strong></dt> |
| 283 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 284 | </dl> |
| 285 | </td></tr></table> <p> |
| 286 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 287 | <tr bgcolor="#ffc8d8"> |
| 288 | <td colspan=3 valign=bottom> <br> |
| 289 | <font color="#000000" face="helvetica, arial"><a name="MissingParameter">class <strong>MissingParameter</strong></a>(<a href="apiclient.oauth.html#Error">Error</a>)</font></td></tr> |
| 290 | |
| 291 | <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
| 292 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 293 | <dd><a href="apiclient.oauth.html#MissingParameter">MissingParameter</a></dd> |
| 294 | <dd><a href="apiclient.oauth.html#Error">Error</a></dd> |
| 295 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 296 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 297 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 298 | </dl> |
| 299 | <hr> |
| 300 | Data descriptors inherited from <a href="apiclient.oauth.html#Error">Error</a>:<br> |
| 301 | <dl><dt><strong>__weakref__</strong></dt> |
| 302 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 303 | </dl> |
| 304 | <hr> |
| 305 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame] | 306 | <dl><dt><a name="MissingParameter-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 307 | |
| 308 | <hr> |
| 309 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 310 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#MissingParameter-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> |
| 311 | |
| 312 | <hr> |
| 313 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 314 | <dl><dt><a name="MissingParameter-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 315 | |
| 316 | <dl><dt><a name="MissingParameter-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 317 | |
| 318 | <dl><dt><a name="MissingParameter-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 319 | |
| 320 | <dl><dt><a name="MissingParameter-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 321 | <br> |
| 322 | Use of negative indices is not supported.</tt></dd></dl> |
| 323 | |
| 324 | <dl><dt><a name="MissingParameter-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 325 | |
| 326 | <dl><dt><a name="MissingParameter-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> |
| 327 | |
| 328 | <dl><dt><a name="MissingParameter-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 329 | |
| 330 | <dl><dt><a name="MissingParameter-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 331 | |
| 332 | <dl><dt><a name="MissingParameter-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#MissingParameter-__str__">__str__</a>() <==> str(x)</tt></dd></dl> |
| 333 | |
| 334 | <dl><dt><a name="MissingParameter-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 335 | |
| 336 | <hr> |
| 337 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 338 | <dl><dt><strong>__dict__</strong></dt> |
| 339 | </dl> |
| 340 | <dl><dt><strong>args</strong></dt> |
| 341 | </dl> |
| 342 | <dl><dt><strong>message</strong></dt> |
| 343 | </dl> |
| 344 | </td></tr></table> <p> |
| 345 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 346 | <tr bgcolor="#ffc8d8"> |
| 347 | <td colspan=3 valign=bottom> <br> |
| 348 | <font color="#000000" face="helvetica, arial"><a name="OAuthCredentials">class <strong>OAuthCredentials</strong></a>(<a href="apiclient.oauth.html#Credentials">Credentials</a>)</font></td></tr> |
| 349 | |
| 350 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 351 | <td colspan=2><tt><a href="#Credentials">Credentials</a> <a href="__builtin__.html#object">object</a> for OAuth 1.0a<br> </tt></td></tr> |
| 352 | <tr><td> </td> |
| 353 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 354 | <dd><a href="apiclient.oauth.html#OAuthCredentials">OAuthCredentials</a></dd> |
| 355 | <dd><a href="apiclient.oauth.html#Credentials">Credentials</a></dd> |
| 356 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 357 | </dl> |
| 358 | <hr> |
| 359 | Methods defined here:<br> |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 360 | <dl><dt><a name="OAuthCredentials-__getstate__"><strong>__getstate__</strong></a>(self)</dt><dd><tt>Trim the state down to something that can be pickled.</tt></dd></dl> |
| 361 | |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 362 | <dl><dt><a name="OAuthCredentials-__init__"><strong>__init__</strong></a>(self, consumer, token, user_agent)</dt><dd><tt>consumer - An instance of oauth.Consumer.<br> |
| 363 | token - An instance of oauth.Token constructed with<br> |
| 364 | the access token and secret.<br> |
| 365 | user_agent - The HTTP User-Agent to provide for this application.</tt></dd></dl> |
| 366 | |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 367 | <dl><dt><a name="OAuthCredentials-__setstate__"><strong>__setstate__</strong></a>(self, state)</dt><dd><tt>Reconstitute the state of the <a href="__builtin__.html#object">object</a> from being pickled.</tt></dd></dl> |
| 368 | |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 369 | <dl><dt><a name="OAuthCredentials-authorize"><strong>authorize</strong></a>(self, http)</dt><dd><tt>Authorize an httplib2.Http instance with these <a href="#Credentials">Credentials</a><br> |
| 370 | <br> |
| 371 | Args:<br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 372 | http - An instance of httplib2.Http<br> |
| 373 | or something that acts like it.<br> |
| 374 | <br> |
| 375 | Returns:<br> |
| 376 | A modified instance of http that was passed in.<br> |
| 377 | <br> |
| 378 | Example:<br> |
| 379 | <br> |
| 380 | h = httplib2.Http()<br> |
| 381 | h = credentials.<a href="#OAuthCredentials-authorize">authorize</a>(h)<br> |
| 382 | <br> |
| 383 | You can't create a new OAuth<br> |
| 384 | subclass of httplib2.Authenication because<br> |
| 385 | it never gets passed the absolute URI, which is<br> |
| 386 | needed for signing. So instead we have to overload<br> |
| 387 | 'request' with a closure that adds in the<br> |
| 388 | Authorization header and then calls the original version<br> |
| 389 | of 'request()'.</tt></dd></dl> |
| 390 | |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 391 | <dl><dt><a name="OAuthCredentials-set_store"><strong>set_store</strong></a>(self, store)</dt><dd><tt>Set the storage for the credential.<br> |
| 392 | <br> |
| 393 | Args:<br> |
| 394 | store: callable, a callable that when passed a Credential<br> |
| 395 | will store the credential back to where it came from.<br> |
| 396 | This is needed to store the latest access_token if it<br> |
| 397 | has been revoked.</tt></dd></dl> |
| 398 | |
| 399 | <hr> |
| 400 | Data descriptors defined here:<br> |
| 401 | <dl><dt><strong>invalid</strong></dt> |
| 402 | <dd><tt>True if the credentials are invalid, such as being revoked.</tt></dd> |
| 403 | </dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 404 | <hr> |
| 405 | Data descriptors inherited from <a href="apiclient.oauth.html#Credentials">Credentials</a>:<br> |
| 406 | <dl><dt><strong>__dict__</strong></dt> |
| 407 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 408 | </dl> |
| 409 | <dl><dt><strong>__weakref__</strong></dt> |
| 410 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 411 | </dl> |
| 412 | </td></tr></table> <p> |
| 413 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 414 | <tr bgcolor="#ffc8d8"> |
| 415 | <td colspan=3 valign=bottom> <br> |
| 416 | <font color="#000000" face="helvetica, arial"><a name="RequestError">class <strong>RequestError</strong></a>(<a href="apiclient.oauth.html#Error">Error</a>)</font></td></tr> |
| 417 | |
| 418 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 419 | <td colspan=2><tt><a href="#Error">Error</a> occurred during request.<br> </tt></td></tr> |
| 420 | <tr><td> </td> |
| 421 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 422 | <dd><a href="apiclient.oauth.html#RequestError">RequestError</a></dd> |
| 423 | <dd><a href="apiclient.oauth.html#Error">Error</a></dd> |
| 424 | <dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> |
| 425 | <dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> |
| 426 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 427 | </dl> |
| 428 | <hr> |
| 429 | Data descriptors inherited from <a href="apiclient.oauth.html#Error">Error</a>:<br> |
| 430 | <dl><dt><strong>__weakref__</strong></dt> |
| 431 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 432 | </dl> |
| 433 | <hr> |
| 434 | Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame] | 435 | <dl><dt><a name="RequestError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 436 | |
| 437 | <hr> |
| 438 | Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> |
| 439 | <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#RequestError-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> |
| 440 | |
| 441 | <hr> |
| 442 | Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 443 | <dl><dt><a name="RequestError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> |
| 444 | |
| 445 | <dl><dt><a name="RequestError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> |
| 446 | |
| 447 | <dl><dt><a name="RequestError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> |
| 448 | |
| 449 | <dl><dt><a name="RequestError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> |
| 450 | <br> |
| 451 | Use of negative indices is not supported.</tt></dd></dl> |
| 452 | |
| 453 | <dl><dt><a name="RequestError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> |
| 454 | |
| 455 | <dl><dt><a name="RequestError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> |
| 456 | |
| 457 | <dl><dt><a name="RequestError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> |
| 458 | |
| 459 | <dl><dt><a name="RequestError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> |
| 460 | |
| 461 | <dl><dt><a name="RequestError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#RequestError-__str__">__str__</a>() <==> str(x)</tt></dd></dl> |
| 462 | |
| 463 | <dl><dt><a name="RequestError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> |
| 464 | |
| 465 | <hr> |
| 466 | Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> |
| 467 | <dl><dt><strong>__dict__</strong></dt> |
| 468 | </dl> |
| 469 | <dl><dt><strong>args</strong></dt> |
| 470 | </dl> |
| 471 | <dl><dt><strong>message</strong></dt> |
| 472 | </dl> |
Joe Gregorio | fffa7d7 | 2011-02-18 17:20:39 -0500 | [diff] [blame] | 473 | </td></tr></table> <p> |
| 474 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 475 | <tr bgcolor="#ffc8d8"> |
| 476 | <td colspan=3 valign=bottom> <br> |
| 477 | <font color="#000000" face="helvetica, arial"><a name="Storage">class <strong>Storage</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 478 | |
| 479 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 480 | <td colspan=2><tt>Base class for all <a href="#Storage">Storage</a> objects.<br> |
| 481 | <br> |
| 482 | Store and retrieve a single credential.<br> </tt></td></tr> |
| 483 | <tr><td> </td> |
| 484 | <td width="100%">Methods defined here:<br> |
| 485 | <dl><dt><a name="Storage-get"><strong>get</strong></a>(self)</dt><dd><tt>Retrieve credential.<br> |
| 486 | <br> |
| 487 | Returns:<br> |
| 488 | apiclient.oauth.<a href="#Credentials">Credentials</a></tt></dd></dl> |
| 489 | |
| 490 | <dl><dt><a name="Storage-put"><strong>put</strong></a>(self, credentials)</dt><dd><tt>Write a credential.<br> |
| 491 | <br> |
| 492 | Args:<br> |
| 493 | credentials: <a href="#Credentials">Credentials</a>, the credentials to store.</tt></dd></dl> |
| 494 | |
| 495 | <hr> |
| 496 | Data descriptors defined here:<br> |
| 497 | <dl><dt><strong>__dict__</strong></dt> |
| 498 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 499 | </dl> |
| 500 | <dl><dt><strong>__weakref__</strong></dt> |
| 501 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 502 | </dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 503 | </td></tr></table> <p> |
| 504 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 505 | <tr bgcolor="#ffc8d8"> |
| 506 | <td colspan=3 valign=bottom> <br> |
| 507 | <font color="#000000" face="helvetica, arial"><a name="TwoLeggedOAuthCredentials">class <strong>TwoLeggedOAuthCredentials</strong></a>(<a href="apiclient.oauth.html#Credentials">Credentials</a>)</font></td></tr> |
| 508 | |
| 509 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 510 | <td colspan=2><tt>Two Legged <a href="#Credentials">Credentials</a> <a href="__builtin__.html#object">object</a> for OAuth 1.0a.<br> |
| 511 | <br> |
| 512 | The Two Legged <a href="__builtin__.html#object">object</a> is created directly, not from a flow. Once you<br> |
| 513 | authorize and httplib2.Http instance you can change the requestor and that<br> |
| 514 | change will propogate to the authorized httplib2.Http instance. For example:<br> |
| 515 | <br> |
| 516 | http = httplib2.Http()<br> |
| 517 | http = credentials.<a href="#TwoLeggedOAuthCredentials-authorize">authorize</a>(http)<br> |
| 518 | <br> |
| 519 | credentials.requestor = 'foo@example.info'<br> |
| 520 | http.request(...)<br> |
| 521 | credentials.requestor = 'bar@example.info'<br> |
| 522 | http.request(...)<br> </tt></td></tr> |
| 523 | <tr><td> </td> |
| 524 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 525 | <dd><a href="apiclient.oauth.html#TwoLeggedOAuthCredentials">TwoLeggedOAuthCredentials</a></dd> |
| 526 | <dd><a href="apiclient.oauth.html#Credentials">Credentials</a></dd> |
| 527 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 528 | </dl> |
| 529 | <hr> |
| 530 | Methods defined here:<br> |
| 531 | <dl><dt><a name="TwoLeggedOAuthCredentials-__getstate__"><strong>__getstate__</strong></a>(self)</dt><dd><tt>Trim the state down to something that can be pickled.</tt></dd></dl> |
| 532 | |
| 533 | <dl><dt><a name="TwoLeggedOAuthCredentials-__init__"><strong>__init__</strong></a>(self, consumer_key, consumer_secret, user_agent)</dt><dd><tt>Args:<br> |
| 534 | consumer_key: string, An OAuth 1.0 consumer key<br> |
| 535 | consumer_secret: string, An OAuth 1.0 consumer secret<br> |
| 536 | user_agent: string, The HTTP User-Agent to provide for this application.</tt></dd></dl> |
| 537 | |
| 538 | <dl><dt><a name="TwoLeggedOAuthCredentials-__setstate__"><strong>__setstate__</strong></a>(self, state)</dt><dd><tt>Reconstitute the state of the <a href="__builtin__.html#object">object</a> from being pickled.</tt></dd></dl> |
| 539 | |
| 540 | <dl><dt><a name="TwoLeggedOAuthCredentials-authorize"><strong>authorize</strong></a>(self, http)</dt><dd><tt>Authorize an httplib2.Http instance with these <a href="#Credentials">Credentials</a><br> |
| 541 | <br> |
| 542 | Args:<br> |
| 543 | http - An instance of httplib2.Http<br> |
| 544 | or something that acts like it.<br> |
| 545 | <br> |
| 546 | Returns:<br> |
| 547 | A modified instance of http that was passed in.<br> |
| 548 | <br> |
| 549 | Example:<br> |
| 550 | <br> |
| 551 | h = httplib2.Http()<br> |
| 552 | h = credentials.<a href="#TwoLeggedOAuthCredentials-authorize">authorize</a>(h)<br> |
| 553 | <br> |
| 554 | You can't create a new OAuth<br> |
| 555 | subclass of httplib2.Authenication because<br> |
| 556 | it never gets passed the absolute URI, which is<br> |
| 557 | needed for signing. So instead we have to overload<br> |
| 558 | 'request' with a closure that adds in the<br> |
| 559 | Authorization header and then calls the original version<br> |
| 560 | of 'request()'.</tt></dd></dl> |
| 561 | |
| 562 | <dl><dt><a name="TwoLeggedOAuthCredentials-getrequestor"><strong>getrequestor</strong></a>(self)</dt></dl> |
| 563 | |
| 564 | <dl><dt><a name="TwoLeggedOAuthCredentials-set_store"><strong>set_store</strong></a>(self, store)</dt><dd><tt>Set the storage for the credential.<br> |
| 565 | <br> |
| 566 | Args:<br> |
| 567 | store: callable, a callable that when passed a Credential<br> |
| 568 | will store the credential back to where it came from.<br> |
| 569 | This is needed to store the latest access_token if it<br> |
| 570 | has been revoked.</tt></dd></dl> |
| 571 | |
| 572 | <dl><dt><a name="TwoLeggedOAuthCredentials-setrequestor"><strong>setrequestor</strong></a>(self, email)</dt></dl> |
| 573 | |
| 574 | <hr> |
| 575 | Data descriptors defined here:<br> |
| 576 | <dl><dt><strong>invalid</strong></dt> |
| 577 | <dd><tt>True if the credentials are invalid, such as being revoked.<br> |
| 578 | <br> |
| 579 | Always returns False for Two Legged Credentials.</tt></dd> |
| 580 | </dl> |
| 581 | <dl><dt><strong>requestor</strong></dt> |
| 582 | <dd><tt>The email address of the user to act on behalf of</tt></dd> |
| 583 | </dl> |
| 584 | <hr> |
| 585 | Data descriptors inherited from <a href="apiclient.oauth.html#Credentials">Credentials</a>:<br> |
| 586 | <dl><dt><strong>__dict__</strong></dt> |
| 587 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 588 | </dl> |
| 589 | <dl><dt><strong>__weakref__</strong></dt> |
| 590 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 591 | </dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 592 | </td></tr></table></td></tr></table><p> |
| 593 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 594 | <tr bgcolor="#55aa55"> |
| 595 | <td colspan=3 valign=bottom> <br> |
| 596 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 597 | |
| 598 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
| 599 | <td width="100%"><strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p> |
| 600 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 601 | <tr bgcolor="#7799ee"> |
| 602 | <td colspan=3 valign=bottom> <br> |
| 603 | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> |
| 604 | |
| 605 | <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> |
| 606 | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> |
| 607 | </body></html> |