Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -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-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Remove a person from a group<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 20 | personId: string, ID of the person to remove from the group. (required)<br> |
| 21 | userId: string, ID of the owner of the group. (required)<br> |
| 22 | hl: string, Language code to limit language results.<br> |
| 23 | alt: string, Specifies an alternative representation type.<br> |
| 24 | Allowed values<br> |
| 25 | atom - Use Atom XML format<br> |
| 26 | json - Use JSON format<br> |
| 27 | groupId: string, ID of the group from which to remove the person. (required)</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 28 | |
| 29 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Get a user profile<br> |
| 30 | <br> |
| 31 | Args:<br> |
Joe Gregorio | 20a5aa9 | 2011-04-01 17:44:25 -0400 | [diff] [blame] | 32 | userId: string, ID of the user being referenced. (required)<br> |
| 33 | hl: string, Language code to limit language results.<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 34 | alt: string, Specifies an alternative representation type.<br> |
| 35 | Allowed values<br> |
| 36 | atom - Use Atom XML format<br> |
Joe Gregorio | 20a5aa9 | 2011-04-01 17:44:25 -0400 | [diff] [blame] | 37 | json - Use JSON format</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 38 | |
| 39 | <dl><dt><a name="Resource-liked"><strong>liked</strong></a> = method(self, **kwargs)</dt><dd><tt>Get people who liked an activity<br> |
| 40 | <br> |
| 41 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 42 | c: string, A continuation token that allows pagination.<br> |
| 43 | userId: string, ID of the user being referenced. (required)<br> |
| 44 | max_results: integer, Maximum number of results to include.<br> |
| 45 | hl: string, Language code to limit language results.<br> |
| 46 | scope: string, A parameter (required)<br> |
| 47 | alt: string, Specifies an alternative representation type.<br> |
| 48 | Allowed values<br> |
| 49 | atom - Use Atom XML format<br> |
| 50 | json - Use JSON format<br> |
| 51 | postId: string, ID of the activity that was liked. (required)<br> |
| 52 | groupId: string, A parameter (required)<br> |
| 53 | Allowed values<br> |
| 54 | @liked - People who liked this activity.</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 55 | |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 56 | <dl><dt><a name="Resource-liked_next"><strong>liked_next</strong></a> = methodNext(self, previous)</dt><dd><tt>Retrieve the next page of results.<br> |
| 57 | <br> |
| 58 | Takes a single argument, 'body', which is the results<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 59 | from the last call, and returns the next set of items<br> |
| 60 | in the collection.<br> |
| 61 | <br> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 62 | Returns:<br> |
| 63 | None if there are no more items in the collection.</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 64 | |
| 65 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Get people in a group<br> |
| 66 | <br> |
| 67 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 68 | c: string, A continuation token that allows pagination.<br> |
| 69 | userId: string, ID of the user being referenced. (required)<br> |
| 70 | max_results: integer, Maximum number of results to include.<br> |
| 71 | hl: string, Language code to limit language results.<br> |
| 72 | alt: string, Specifies an alternative representation type.<br> |
| 73 | Allowed values<br> |
| 74 | atom - Use Atom XML format<br> |
| 75 | json - Use JSON format<br> |
| 76 | groupId: string, ID of the group for which to list users. (required)</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 77 | |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 78 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Add a person to a group. This method supports patch semantics.<br> |
| 79 | <br> |
| 80 | Args:<br> |
| 81 | body: object, The request body. (required)<br> |
| 82 | personId: string, ID of the person to add to the group. (required)<br> |
| 83 | userId: string, ID of the owner of the group. (required)<br> |
| 84 | hl: string, Language code to limit language results.<br> |
| 85 | alt: string, Specifies an alternative representation type.<br> |
| 86 | Allowed values<br> |
| 87 | atom - Use Atom XML format<br> |
| 88 | json - Use JSON format<br> |
| 89 | groupId: string, ID of the group to which to add the person. (required)</tt></dd></dl> |
| 90 | |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 91 | <dl><dt><a name="Resource-reshared"><strong>reshared</strong></a> = method(self, **kwargs)</dt><dd><tt>Get people who reshared an activity<br> |
| 92 | <br> |
| 93 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 94 | c: string, A continuation token that allows pagination.<br> |
| 95 | userId: string, ID of the user being referenced. (required)<br> |
| 96 | max_results: integer, Maximum number of results to include.<br> |
| 97 | hl: string, Language code to limit language results.<br> |
| 98 | scope: string, A parameter (required)<br> |
| 99 | alt: string, Specifies an alternative representation type.<br> |
| 100 | Allowed values<br> |
| 101 | atom - Use Atom XML format<br> |
| 102 | json - Use JSON format<br> |
| 103 | postId: string, ID of the activity that was reshared. (required)<br> |
| 104 | groupId: string, A parameter (required)<br> |
| 105 | Allowed values<br> |
| 106 | @reshared - People who reshared this activity.</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 107 | |
| 108 | <dl><dt><a name="Resource-search"><strong>search</strong></a> = method(self, **kwargs)</dt><dd><tt>Search for people<br> |
| 109 | <br> |
| 110 | Args:<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 111 | c: string, A continuation token that allows pagination.<br> |
| 112 | q: string, Full-text search query string.<br> |
| 113 | max_results: integer, Maximum number of results to include.<br> |
| 114 | hl: string, Language code to limit language results.<br> |
| 115 | alt: string, Specifies an alternative representation type.<br> |
| 116 | Allowed values<br> |
| 117 | atom - Use Atom XML format<br> |
| 118 | json - Use JSON format</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 119 | |
| 120 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Add a person to a group<br> |
| 121 | <br> |
| 122 | Args:<br> |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 123 | body: object, The request body. (required)<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 124 | personId: string, ID of the person to add to the group. (required)<br> |
| 125 | userId: string, ID of the owner of the group. (required)<br> |
| 126 | hl: string, Language code to limit language results.<br> |
| 127 | alt: string, Specifies an alternative representation type.<br> |
| 128 | Allowed values<br> |
| 129 | atom - Use Atom XML format<br> |
| 130 | json - Use JSON format<br> |
| 131 | groupId: string, ID of the group to which to add the person. (required)</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 132 | |
| 133 | <hr> |
| 134 | Data descriptors defined here:<br> |
| 135 | <dl><dt><strong>__dict__</strong></dt> |
| 136 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 137 | </dl> |
| 138 | <dl><dt><strong>__weakref__</strong></dt> |
| 139 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 140 | </dl> |
| 141 | </td></tr></table> |
| 142 | </body></html> |