| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><title>Python: class Resource</title> |
| </head><body bgcolor="#f0f0f8"> |
| <p> |
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| <tr bgcolor="#ffc8d8"> |
| <td colspan=3 valign=bottom> <br> |
| <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> |
| |
| <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| <tr><td> </td> |
| <td width="100%">Methods defined here:<br> |
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| |
| <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> |
| <br> |
| Args:<br> |
| access_token: string, A parameter<br> |
| id_token: string, A parameter<br> |
| <br> |
| Returns:<br> |
| An object of the form<br> |
| <br> |
| {<br> |
| "issued_to": "A String", # To whom was the token issued to. In general the same as audience.<br> |
| "user_id": "A String", # The Gaia obfuscated user id.<br> |
| "expires_in": 42, # The expiry time of the token, as number of seconds left until expiry.<br> |
| "access_type": "A String", # The access type granted with this toke. It can be offline or online.<br> |
| "audience": "A String", # Who is the intended audience for this token. In general the same as issued_to.<br> |
| "scope": "A String", # The space separated list of scopes granted to this token.<br> |
| "email": "A String", # The email address of the user. Present only if the email scope is present in the request.<br> |
| "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> |
| }</tt></dd></dl> |
| |
| <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> |
| |
| <hr> |
| Data descriptors defined here:<br> |
| <dl><dt><strong>__dict__</strong></dt> |
| <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| </dl> |
| <dl><dt><strong>__weakref__</strong></dt> |
| <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| </dl> |
| </td></tr></table> |
| </body></html> |