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>Deletes a location from the user's location history.<br> |
| 18 | <br> |
| 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 | locationId: string, Timestamp of the location to delete (ms since epoch). (required)<br> |
| 24 | userip: string, A parameter</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 25 | |
| 26 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Reads a location from the user's location history.<br> |
| 27 | <br> |
| 28 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 29 | pp: string, A parameter<br> |
| 30 | trace: string, A parameter<br> |
| 31 | strict: string, A parameter<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 32 | locationId: string, Timestamp of the location to read (ms since epoch). (required)<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 33 | granularity: string, Granularity of the location to return.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 34 | Allowed values<br> |
| 35 | best - Request best available granularity.<br> |
| 36 | city - Request city-level granularty.<br> |
| 37 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 38 | <br> |
| 39 | Returns:<br> |
| 40 | An object of the form<br> |
| 41 | <br> |
| 42 | { # 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> |
| 43 | "kind": "latitude#location", # Kind of this item.<br> |
| 44 | "altitude": "", # Altitude of the location, in meters. Optional.<br> |
| 45 | "longitude": "", # Longitude of the location, in decimal degrees.<br> |
| 46 | "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> |
| 47 | "latitude": "", # Latitude of the location, in decimal degrees.<br> |
| 48 | "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.<br> |
| 49 | "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.<br> |
| 50 | "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.<br> |
| 51 | "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.<br> |
| 52 | "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.<br> |
| 53 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 54 | |
| 55 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts or updates a location in the user's location history.<br> |
| 56 | <br> |
| 57 | Args:<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 58 | body: object, The request body. (required)<br> |
| 59 | The object takes the form of:<br> |
| 60 | <br> |
| 61 | { # 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> |
| 62 | "kind": "latitude#location", # Kind of this item.<br> |
| 63 | "altitude": "", # Altitude of the location, in meters. Optional.<br> |
| 64 | "longitude": "", # Longitude of the location, in decimal degrees.<br> |
| 65 | "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> |
| 66 | "latitude": "", # Latitude of the location, in decimal degrees.<br> |
| 67 | "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.<br> |
| 68 | "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.<br> |
| 69 | "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.<br> |
| 70 | "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.<br> |
| 71 | "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.<br> |
| 72 | }<br> |
| 73 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 74 | pp: string, A parameter<br> |
| 75 | trace: string, A parameter<br> |
| 76 | strict: string, A parameter<br> |
| 77 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 78 | <br> |
| 79 | Returns:<br> |
| 80 | An object of the form<br> |
| 81 | <br> |
| 82 | { # 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> |
| 83 | "kind": "latitude#location", # Kind of this item.<br> |
| 84 | "altitude": "", # Altitude of the location, in meters. Optional.<br> |
| 85 | "longitude": "", # Longitude of the location, in decimal degrees.<br> |
| 86 | "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> |
| 87 | "latitude": "", # Latitude of the location, in decimal degrees.<br> |
| 88 | "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.<br> |
| 89 | "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.<br> |
| 90 | "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.<br> |
| 91 | "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.<br> |
| 92 | "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.<br> |
| 93 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 94 | |
| 95 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists the user's location history.<br> |
| 96 | <br> |
| 97 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 98 | pp: string, A parameter<br> |
| 99 | trace: string, A parameter<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 100 | min_time: string, Minimum timestamp of locations to return (ms since epoch).<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 101 | userip: string, A parameter<br> |
| 102 | strict: string, A parameter<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 103 | max_results: string, Maximum number of locations to return.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 104 | granularity: string, Granularity of the requested locations.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 105 | Allowed values<br> |
| 106 | best - Request best available granularity.<br> |
| 107 | city - Request city-level granularty.<br> |
| 108 | max_time: string, Maximum timestamp of locations to return (ms since epoch).<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 109 | <br> |
| 110 | Returns:<br> |
| 111 | An object of the form<br> |
| 112 | <br> |
| 113 | {<br> |
| 114 | "items": [<br> |
| 115 | { # 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> |
| 116 | "kind": "latitude#location", # Kind of this item.<br> |
| 117 | "altitude": "", # Altitude of the location, in meters. Optional.<br> |
| 118 | "longitude": "", # Longitude of the location, in decimal degrees.<br> |
| 119 | "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> |
| 120 | "latitude": "", # Latitude of the location, in decimal degrees.<br> |
| 121 | "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.<br> |
| 122 | "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.<br> |
| 123 | "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.<br> |
| 124 | "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.<br> |
| 125 | "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.<br> |
| 126 | },<br> |
| 127 | ],<br> |
| 128 | "kind": "latitude#locationFeed",<br> |
| 129 | }</tt></dd></dl> |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 130 | |
| 131 | <hr> |
| 132 | Data descriptors defined here:<br> |
| 133 | <dl><dt><strong>__dict__</strong></dt> |
| 134 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 135 | </dl> |
| 136 | <dl><dt><strong>__weakref__</strong></dt> |
| 137 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 138 | </dl> |
| 139 | </td></tr></table> |
| 140 | </body></html> |