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 | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 17 | <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes the authenticated user's current location.<br> |
| 18 | <br> |
| 19 | Args:</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 20 | |
| 21 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the authenticated user's current location.<br> |
| 22 | <br> |
| 23 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 24 | granularity: string, Granularity of the requested location.<br> |
| 25 | <br> |
| 26 | Returns:<br> |
| 27 | An object of the form<br> |
| 28 | <br> |
| 29 | { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.<br> |
| 30 | "kind": "latitude#location", # Kind of this item.<br> |
| 31 | "altitude": "", # Altitude of the location, in meters. Optional.<br> |
| 32 | "longitude": "", # Longitude of the location, in decimal degrees.<br> |
| 33 | "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.<br> |
| 34 | "latitude": "", # Latitude of the location, in decimal degrees.<br> |
| 35 | "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.<br> |
| 36 | "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.<br> |
| 37 | "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.<br> |
| 38 | "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.<br> |
| 39 | "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.<br> |
| 40 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 41 | |
| 42 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates or creates the user's current location.<br> |
| 43 | <br> |
| 44 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 45 | body: object, The request body. (required)<br> |
| 46 | The object takes the form of:<br> |
| 47 | <br> |
| 48 | { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.<br> |
| 49 | "kind": "latitude#location", # Kind of this item.<br> |
| 50 | "altitude": "", # Altitude of the location, in meters. Optional.<br> |
| 51 | "longitude": "", # Longitude of the location, in decimal degrees.<br> |
| 52 | "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.<br> |
| 53 | "latitude": "", # Latitude of the location, in decimal degrees.<br> |
| 54 | "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.<br> |
| 55 | "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.<br> |
| 56 | "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.<br> |
| 57 | "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.<br> |
| 58 | "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.<br> |
| 59 | }<br> |
| 60 | <br> |
| 61 | <br> |
| 62 | Returns:<br> |
| 63 | An object of the form<br> |
| 64 | <br> |
| 65 | { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.<br> |
| 66 | "kind": "latitude#location", # Kind of this item.<br> |
| 67 | "altitude": "", # Altitude of the location, in meters. Optional.<br> |
| 68 | "longitude": "", # Longitude of the location, in decimal degrees.<br> |
| 69 | "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.<br> |
| 70 | "latitude": "", # Latitude of the location, in decimal degrees.<br> |
| 71 | "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.<br> |
| 72 | "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.<br> |
| 73 | "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.<br> |
| 74 | "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.<br> |
| 75 | "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.<br> |
| 76 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 77 | |
| 78 | <hr> |
| 79 | Data descriptors defined here:<br> |
| 80 | <dl><dt><strong>__dict__</strong></dt> |
| 81 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 82 | </dl> |
| 83 | <dl><dt><strong>__weakref__</strong></dt> |
| 84 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 85 | </dl> |
| 86 | </td></tr></table> |
| 87 | </body></html> |