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 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 17 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the profile information for the authenticated user.<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 18 | <br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 19 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 20 | pp: string, A parameter<br> |
| 21 | trace: string, A parameter<br> |
| 22 | strict: string, A parameter<br> |
| 23 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 24 | <br> |
| 25 | Returns:<br> |
| 26 | An object of the form<br> |
| 27 | <br> |
| 28 | {<br> |
| 29 | "kind": "moderator#profile",<br> |
| 30 | "attribution": {<br> |
| 31 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 32 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 33 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 34 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 35 | },<br> |
| 36 | "displayName": "A String",<br> |
| 37 | "location": "A String",<br> |
| 38 | "avatarUrl": "A String",<br> |
| 39 | },<br> |
| 40 | "id": {<br> |
| 41 | "user": "A String",<br> |
| 42 | },<br> |
| 43 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 44 | |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 45 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the profile information for the authenticated user. This method supports patch semantics.<br> |
| 46 | <br> |
| 47 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 48 | body: object, The request body. (required)<br> |
| 49 | The object takes the form of:<br> |
| 50 | <br> |
| 51 | {<br> |
| 52 | "kind": "moderator#profile",<br> |
| 53 | "attribution": {<br> |
| 54 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 55 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 56 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 57 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 58 | },<br> |
| 59 | "displayName": "A String",<br> |
| 60 | "location": "A String",<br> |
| 61 | "avatarUrl": "A String",<br> |
| 62 | },<br> |
| 63 | "id": {<br> |
| 64 | "user": "A String",<br> |
| 65 | },<br> |
| 66 | }<br> |
| 67 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 68 | pp: string, A parameter<br> |
| 69 | trace: string, A parameter<br> |
| 70 | strict: string, A parameter<br> |
| 71 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 72 | <br> |
| 73 | Returns:<br> |
| 74 | An object of the form<br> |
| 75 | <br> |
| 76 | {<br> |
| 77 | "kind": "moderator#profile",<br> |
| 78 | "attribution": {<br> |
| 79 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 80 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 81 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 82 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 83 | },<br> |
| 84 | "displayName": "A String",<br> |
| 85 | "location": "A String",<br> |
| 86 | "avatarUrl": "A String",<br> |
| 87 | },<br> |
| 88 | "id": {<br> |
| 89 | "user": "A String",<br> |
| 90 | },<br> |
| 91 | }</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 92 | |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 93 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the profile information for the authenticated user.<br> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 94 | <br> |
| 95 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 96 | body: object, The request body. (required)<br> |
| 97 | The object takes the form of:<br> |
| 98 | <br> |
| 99 | {<br> |
| 100 | "kind": "moderator#profile",<br> |
| 101 | "attribution": {<br> |
| 102 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 103 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 104 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 105 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 106 | },<br> |
| 107 | "displayName": "A String",<br> |
| 108 | "location": "A String",<br> |
| 109 | "avatarUrl": "A String",<br> |
| 110 | },<br> |
| 111 | "id": {<br> |
| 112 | "user": "A String",<br> |
| 113 | },<br> |
| 114 | }<br> |
| 115 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame^] | 116 | pp: string, A parameter<br> |
| 117 | trace: string, A parameter<br> |
| 118 | strict: string, A parameter<br> |
| 119 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 120 | <br> |
| 121 | Returns:<br> |
| 122 | An object of the form<br> |
| 123 | <br> |
| 124 | {<br> |
| 125 | "kind": "moderator#profile",<br> |
| 126 | "attribution": {<br> |
| 127 | "geo": {<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 128 | "latitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 129 | "location": "A String",<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 130 | "longitude": 3.14,<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 131 | },<br> |
| 132 | "displayName": "A String",<br> |
| 133 | "location": "A String",<br> |
| 134 | "avatarUrl": "A String",<br> |
| 135 | },<br> |
| 136 | "id": {<br> |
| 137 | "user": "A String",<br> |
| 138 | },<br> |
| 139 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 140 | |
| 141 | <hr> |
| 142 | Data descriptors defined here:<br> |
| 143 | <dl><dt><strong>__dict__</strong></dt> |
| 144 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 145 | </dl> |
| 146 | <dl><dt><strong>__weakref__</strong></dt> |
| 147 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 148 | </dl> |
| 149 | </td></tr></table> |
| 150 | </body></html> |