| |
| <!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-count"><strong>count</strong></a> = method(self, **kwargs)</dt><dd><tt>Get a count of link shares<br> |
| <br> |
| Args:<br> |
| url: string, URLs for which to get share counts. (repeated)<br> |
| hl: string, Language code to limit language results.</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Delete an activity<br> |
| <br> |
| Args:<br> |
| userId: string, ID of the user whose post to delete. (required)<br> |
| hl: string, Language code to limit language results.<br> |
| scope: string, The collection to which the activity belongs. (required)<br> |
| Allowed values<br> |
| @liked - Activities liked by the user.<br> |
| @muted - Activities muted by the user.<br> |
| @self - Activities posted by the user.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format<br> |
| postId: string, ID of the activity to delete. (required)</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-extractPeopleFromSearch"><strong>extractPeopleFromSearch</strong></a> = method(self, **kwargs)</dt><dd><tt>Search for people by topic<br> |
| <br> |
| Args:<br> |
| c: string, A continuation token that allows pagination.<br> |
| lat: string, Latitude to use in a geographic location query.<br> |
| lon: string, Longitude to use in a geographic location query.<br> |
| pid: string, ID of a place to use in a geographic location query.<br> |
| q: string, Full-text search query string.<br> |
| max_results: integer, Maximum number of results to include.<br> |
| radius: string, Radius to use in a geographic location query.<br> |
| bbox: string, Bounding box to use in a geographic location query.<br> |
| hl: string, Language code to limit language results.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Get an activity<br> |
| <br> |
| Args:<br> |
| postId: string, ID of the post to get. (required)<br> |
| truncateAtom: boolean, Truncate the value of the atom:content element.<br> |
| userId: string, ID of the user whose post to get. (required)<br> |
| hl: string, Language code to limit language results.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format<br> |
| max_comments: integer, Maximum number of comments to include.<br> |
| max_liked: integer, Maximum number of likes to include.</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Create a new activity<br> |
| <br> |
| Args:<br> |
| body: object, The request body. (required)<br> |
| userId: string, ID of the user being referenced. (required)<br> |
| hl: string, Language code to limit language results.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format<br> |
| preview: boolean, If true, only preview the action.</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>List activities<br> |
| <br> |
| Args:<br> |
| c: string, A continuation token that allows pagination.<br> |
| truncateAtom: boolean, Truncate the value of the atom:content element.<br> |
| userId: string, ID of the user being referenced. (required)<br> |
| max_results: integer, Maximum number of results to include.<br> |
| hl: string, Language code to limit language results.<br> |
| scope: string, The collection of activities to list. (required)<br> |
| Allowed values<br> |
| @comments - Limit to activities commented on by the user.<br> |
| @consumption - Limit to activities to be consumed by the user.<br> |
| @liked - Limit to activities liked by the user.<br> |
| @public - Limit to public activities posted by the user.<br> |
| @self - Limit to activities posted by the user.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format<br> |
| max_comments: integer, Maximum number of comments to include.<br> |
| max_liked: integer, Maximum number of likes to include.</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous)</dt><dd><tt>Takes a single argument, 'body', which is the results<br> |
| from the last call, and returns the next set of items<br> |
| in the collection.<br> |
| <br> |
| Returns None if there are no more items in<br> |
| the collection.</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-search"><strong>search</strong></a> = method(self, **kwargs)</dt><dd><tt>Search for activities<br> |
| <br> |
| Args:<br> |
| c: string, A continuation token that allows pagination.<br> |
| lat: string, Latitude to use in a geographic location query.<br> |
| lon: string, Longitude to use in a geographic location query.<br> |
| pid: string, ID of a place to use in a geographic location query.<br> |
| q: string, Full-text search query string.<br> |
| truncateAtom: boolean, Truncate the value of the atom:content element.<br> |
| max_results: integer, Maximum number of results to include.<br> |
| radius: string, Radius to use in a geographic location query.<br> |
| bbox: string, Bounding box to use in a geographic location query.<br> |
| hl: string, Language code to limit language results.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-search_next"><strong>search_next</strong></a> = methodNext(self, previous)</dt><dd><tt>Takes a single argument, 'body', which is the results<br> |
| from the last call, and returns the next set of items<br> |
| in the collection.<br> |
| <br> |
| Returns None if there are no more items in<br> |
| the collection.</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-track"><strong>track</strong></a> = method(self, **kwargs)</dt><dd><tt>Get real-time activity tracking information<br> |
| <br> |
| Args:<br> |
| c: string, A continuation token that allows pagination.<br> |
| lat: string, Latitude to use in a geographic location query.<br> |
| lon: string, Longitude to use in a geographic location query.<br> |
| pid: string, ID of a place to use in a geographic location query.<br> |
| q: string, Full-text search query string.<br> |
| max_results: integer, Maximum number of results to include.<br> |
| radius: string, Radius to use in a geographic location query.<br> |
| bbox: string, Bounding box to use in a geographic location query.<br> |
| hl: string, Language code to limit language results.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Update an activity<br> |
| <br> |
| Args:<br> |
| body: object, The request body. (required)<br> |
| userId: string, ID of the user whose post to update. (required)<br> |
| abuseType: string, A parameter<br> |
| hl: string, Language code to limit language results.<br> |
| scope: string, The collection to which the activity belongs. (required)<br> |
| Allowed values<br> |
| @abuse - Activities reported by the user.<br> |
| @liked - Activities liked by the user.<br> |
| @muted - Activities muted by the user.<br> |
| @self - Activities posted by the user.<br> |
| alt: string, Specifies an alternative representation type.<br> |
| Allowed values<br> |
| atom - Use Atom XML format<br> |
| json - Use JSON format<br> |
| postId: string, ID of the activity to update. (required)</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> |