Joe Gregorio | 945cca1 | 2012-02-21 11:59:48 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
| 17 | <dl><dt><a name="Resource-tokeninfo"><strong>tokeninfo</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | access_token: string, A parameter<br> |
| 21 | id_token: string, A parameter<br> |
| 22 | <br> |
| 23 | Returns:<br> |
| 24 | An object of the form<br> |
| 25 | <br> |
| 26 | {<br> |
| 27 | "issued_to": "A String", # To whom was the token issued to. In general the same as audience.<br> |
| 28 | "user_id": "A String", # The Gaia obfuscated user id.<br> |
| 29 | "expires_in": 42, # The expiry time of the token, as number of seconds left until expiry.<br> |
| 30 | "access_type": "A String", # The access type granted with this toke. It can be offline or online.<br> |
| 31 | "audience": "A String", # Who is the intended audience for this token. In general the same as issued_to.<br> |
| 32 | "scope": "A String", # The space separated list of scopes granted to this token.<br> |
| 33 | "email": "A String", # The email address of the user. Present only if the email scope is present in the request.<br> |
| 34 | "verified_email": True or False, # Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.<br> |
| 35 | }</tt></dd></dl> |
| 36 | |
| 37 | <dl><dt><a name="Resource-userinfo"><strong><a href="oauth2.v2.userinfo.html">userinfo</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| 38 | |
| 39 | <hr> |
| 40 | Data descriptors defined here:<br> |
| 41 | <dl><dt><strong>__dict__</strong></dt> |
| 42 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 43 | </dl> |
| 44 | <dl><dt><strong>__weakref__</strong></dt> |
| 45 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 46 | </dl> |
| 47 | </td></tr></table> |
| 48 | </body></html> |