Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -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 an annotation.<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> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 22 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 23 | annotationId: string, The ID for the annotation to delete. (required)<br> |
| 24 | strict: string, A parameter<br> |
| 25 | userip: string, A parameter</tt></dd></dl> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 26 | |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 27 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets an annotation by its ID.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 28 | <br> |
| 29 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 30 | pp: string, A parameter<br> |
| 31 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 32 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 33 | annotationId: string, The ID for the annotation to retrieve. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 34 | strict: string, A parameter<br> |
| 35 | userip: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 36 | <br> |
| 37 | Returns:<br> |
| 38 | An object of the form<br> |
| 39 | <br> |
| 40 | {<br> |
| 41 | "kind": "books#annotation", # Resource type.<br> |
| 42 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 43 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 44 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 45 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 46 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 47 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 48 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 49 | "startPosition": "A String", # The starting position for the range.<br> |
| 50 | "endPosition": "A String", # The ending position for the range.<br> |
| 51 | "startOffset": "A String", # The offset from the starting position.<br> |
| 52 | "endOffset": "A String", # The offset from the ending position.<br> |
| 53 | },<br> |
| 54 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 55 | "startPosition": "A String", # The starting position for the range.<br> |
| 56 | "endPosition": "A String", # The ending position for the range.<br> |
| 57 | "startOffset": "A String", # The offset from the starting position.<br> |
| 58 | "endOffset": "A String", # The offset from the ending position.<br> |
| 59 | },<br> |
| 60 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 61 | "startPosition": "A String", # The starting position for the range.<br> |
| 62 | "endPosition": "A String", # The ending position for the range.<br> |
| 63 | "startOffset": "A String", # The offset from the starting position.<br> |
| 64 | "endOffset": "A String", # The offset from the ending position.<br> |
| 65 | },<br> |
| 66 | },<br> |
| 67 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 68 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 69 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 70 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 71 | "startPosition": "A String", # The starting position for the range.<br> |
| 72 | "endPosition": "A String", # The ending position for the range.<br> |
| 73 | "startOffset": "A String", # The offset from the starting position.<br> |
| 74 | "endOffset": "A String", # The offset from the ending position.<br> |
| 75 | },<br> |
| 76 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 77 | "startPosition": "A String", # The starting position for the range.<br> |
| 78 | "endPosition": "A String", # The ending position for the range.<br> |
| 79 | "startOffset": "A String", # The offset from the starting position.<br> |
| 80 | "endOffset": "A String", # The offset from the ending position.<br> |
| 81 | },<br> |
| 82 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 83 | "startPosition": "A String", # The starting position for the range.<br> |
| 84 | "endPosition": "A String", # The ending position for the range.<br> |
| 85 | "startOffset": "A String", # The offset from the starting position.<br> |
| 86 | "endOffset": "A String", # The offset from the ending position.<br> |
| 87 | },<br> |
| 88 | },<br> |
| 89 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 90 | "pageIds": [ # Pages that this annotation spans.<br> |
| 91 | "A String",<br> |
| 92 | ],<br> |
| 93 | "layerId": "A String", # The layer this annotation is for.<br> |
| 94 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 95 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 96 | "data": "A String", # User-created data for this annotation.<br> |
| 97 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 98 | "selfLink": "A String", # URL to this resource.<br> |
| 99 | }</tt></dd></dl> |
| 100 | |
| 101 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new annotation.<br> |
| 102 | <br> |
| 103 | Args:<br> |
| 104 | body: object, The request body. (required)<br> |
| 105 | The object takes the form of:<br> |
| 106 | <br> |
| 107 | {<br> |
| 108 | "kind": "books#annotation", # Resource type.<br> |
| 109 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 110 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 111 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 112 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 113 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 114 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 115 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 116 | "startPosition": "A String", # The starting position for the range.<br> |
| 117 | "endPosition": "A String", # The ending position for the range.<br> |
| 118 | "startOffset": "A String", # The offset from the starting position.<br> |
| 119 | "endOffset": "A String", # The offset from the ending position.<br> |
| 120 | },<br> |
| 121 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 122 | "startPosition": "A String", # The starting position for the range.<br> |
| 123 | "endPosition": "A String", # The ending position for the range.<br> |
| 124 | "startOffset": "A String", # The offset from the starting position.<br> |
| 125 | "endOffset": "A String", # The offset from the ending position.<br> |
| 126 | },<br> |
| 127 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 128 | "startPosition": "A String", # The starting position for the range.<br> |
| 129 | "endPosition": "A String", # The ending position for the range.<br> |
| 130 | "startOffset": "A String", # The offset from the starting position.<br> |
| 131 | "endOffset": "A String", # The offset from the ending position.<br> |
| 132 | },<br> |
| 133 | },<br> |
| 134 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 135 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 136 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 137 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 138 | "startPosition": "A String", # The starting position for the range.<br> |
| 139 | "endPosition": "A String", # The ending position for the range.<br> |
| 140 | "startOffset": "A String", # The offset from the starting position.<br> |
| 141 | "endOffset": "A String", # The offset from the ending position.<br> |
| 142 | },<br> |
| 143 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 144 | "startPosition": "A String", # The starting position for the range.<br> |
| 145 | "endPosition": "A String", # The ending position for the range.<br> |
| 146 | "startOffset": "A String", # The offset from the starting position.<br> |
| 147 | "endOffset": "A String", # The offset from the ending position.<br> |
| 148 | },<br> |
| 149 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 150 | "startPosition": "A String", # The starting position for the range.<br> |
| 151 | "endPosition": "A String", # The ending position for the range.<br> |
| 152 | "startOffset": "A String", # The offset from the starting position.<br> |
| 153 | "endOffset": "A String", # The offset from the ending position.<br> |
| 154 | },<br> |
| 155 | },<br> |
| 156 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 157 | "pageIds": [ # Pages that this annotation spans.<br> |
| 158 | "A String",<br> |
| 159 | ],<br> |
| 160 | "layerId": "A String", # The layer this annotation is for.<br> |
| 161 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 162 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 163 | "data": "A String", # User-created data for this annotation.<br> |
| 164 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 165 | "selfLink": "A String", # URL to this resource.<br> |
| 166 | }<br> |
| 167 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 168 | pp: string, A parameter<br> |
| 169 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 170 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 171 | strict: string, A parameter<br> |
| 172 | userip: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 173 | <br> |
| 174 | Returns:<br> |
| 175 | An object of the form<br> |
| 176 | <br> |
| 177 | {<br> |
| 178 | "kind": "books#annotation", # Resource type.<br> |
| 179 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 180 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 181 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 182 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 183 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 184 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 185 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 186 | "startPosition": "A String", # The starting position for the range.<br> |
| 187 | "endPosition": "A String", # The ending position for the range.<br> |
| 188 | "startOffset": "A String", # The offset from the starting position.<br> |
| 189 | "endOffset": "A String", # The offset from the ending position.<br> |
| 190 | },<br> |
| 191 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 192 | "startPosition": "A String", # The starting position for the range.<br> |
| 193 | "endPosition": "A String", # The ending position for the range.<br> |
| 194 | "startOffset": "A String", # The offset from the starting position.<br> |
| 195 | "endOffset": "A String", # The offset from the ending position.<br> |
| 196 | },<br> |
| 197 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 198 | "startPosition": "A String", # The starting position for the range.<br> |
| 199 | "endPosition": "A String", # The ending position for the range.<br> |
| 200 | "startOffset": "A String", # The offset from the starting position.<br> |
| 201 | "endOffset": "A String", # The offset from the ending position.<br> |
| 202 | },<br> |
| 203 | },<br> |
| 204 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 205 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 206 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 207 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 208 | "startPosition": "A String", # The starting position for the range.<br> |
| 209 | "endPosition": "A String", # The ending position for the range.<br> |
| 210 | "startOffset": "A String", # The offset from the starting position.<br> |
| 211 | "endOffset": "A String", # The offset from the ending position.<br> |
| 212 | },<br> |
| 213 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 214 | "startPosition": "A String", # The starting position for the range.<br> |
| 215 | "endPosition": "A String", # The ending position for the range.<br> |
| 216 | "startOffset": "A String", # The offset from the starting position.<br> |
| 217 | "endOffset": "A String", # The offset from the ending position.<br> |
| 218 | },<br> |
| 219 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 220 | "startPosition": "A String", # The starting position for the range.<br> |
| 221 | "endPosition": "A String", # The ending position for the range.<br> |
| 222 | "startOffset": "A String", # The offset from the starting position.<br> |
| 223 | "endOffset": "A String", # The offset from the ending position.<br> |
| 224 | },<br> |
| 225 | },<br> |
| 226 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 227 | "pageIds": [ # Pages that this annotation spans.<br> |
| 228 | "A String",<br> |
| 229 | ],<br> |
| 230 | "layerId": "A String", # The layer this annotation is for.<br> |
| 231 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 232 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 233 | "data": "A String", # User-created data for this annotation.<br> |
| 234 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 235 | "selfLink": "A String", # URL to this resource.<br> |
| 236 | }</tt></dd></dl> |
| 237 | |
| 238 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of annotations, possibly filtered.<br> |
| 239 | <br> |
| 240 | Args:<br> |
| 241 | pageToken: string, The value of the nextToken from the previous page.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 242 | pp: string, A parameter<br> |
| 243 | trace: string, A parameter<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 244 | updatedMax: string, <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp to restrict to items updated prior to this timestamp (exclusive).<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 245 | layerId: string, The layer ID to limit annotation by.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 246 | volumeId: string, The volume to restrict annotations to.<br> |
| 247 | maxResults: integer, Maximum number of results to return<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 248 | showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 249 | pageIds: string, The page ID(s) for the volume that is being queried. (repeated)<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 250 | contentVersion: string, The content version for the requested volume.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 251 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 252 | updatedMin: string, <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp to restrict to items updated since this timestamp (inclusive).<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 253 | userip: string, A parameter<br> |
| 254 | strict: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 255 | <br> |
| 256 | Returns:<br> |
| 257 | An object of the form<br> |
| 258 | <br> |
| 259 | {<br> |
| 260 | "nextPageToken": "A String", # Token to pass in for pagination for the next page. This will not be present if this request does not have more results.<br> |
| 261 | "items": [ # A list of annotations.<br> |
| 262 | {<br> |
| 263 | "kind": "books#annotation", # Resource type.<br> |
| 264 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 265 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 266 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 267 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 268 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 269 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 270 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 271 | "startPosition": "A String", # The starting position for the range.<br> |
| 272 | "endPosition": "A String", # The ending position for the range.<br> |
| 273 | "startOffset": "A String", # The offset from the starting position.<br> |
| 274 | "endOffset": "A String", # The offset from the ending position.<br> |
| 275 | },<br> |
| 276 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 277 | "startPosition": "A String", # The starting position for the range.<br> |
| 278 | "endPosition": "A String", # The ending position for the range.<br> |
| 279 | "startOffset": "A String", # The offset from the starting position.<br> |
| 280 | "endOffset": "A String", # The offset from the ending position.<br> |
| 281 | },<br> |
| 282 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 283 | "startPosition": "A String", # The starting position for the range.<br> |
| 284 | "endPosition": "A String", # The ending position for the range.<br> |
| 285 | "startOffset": "A String", # The offset from the starting position.<br> |
| 286 | "endOffset": "A String", # The offset from the ending position.<br> |
| 287 | },<br> |
| 288 | },<br> |
| 289 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 290 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 291 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 292 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 293 | "startPosition": "A String", # The starting position for the range.<br> |
| 294 | "endPosition": "A String", # The ending position for the range.<br> |
| 295 | "startOffset": "A String", # The offset from the starting position.<br> |
| 296 | "endOffset": "A String", # The offset from the ending position.<br> |
| 297 | },<br> |
| 298 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 299 | "startPosition": "A String", # The starting position for the range.<br> |
| 300 | "endPosition": "A String", # The ending position for the range.<br> |
| 301 | "startOffset": "A String", # The offset from the starting position.<br> |
| 302 | "endOffset": "A String", # The offset from the ending position.<br> |
| 303 | },<br> |
| 304 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 305 | "startPosition": "A String", # The starting position for the range.<br> |
| 306 | "endPosition": "A String", # The ending position for the range.<br> |
| 307 | "startOffset": "A String", # The offset from the starting position.<br> |
| 308 | "endOffset": "A String", # The offset from the ending position.<br> |
| 309 | },<br> |
| 310 | },<br> |
| 311 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 312 | "pageIds": [ # Pages that this annotation spans.<br> |
| 313 | "A String",<br> |
| 314 | ],<br> |
| 315 | "layerId": "A String", # The layer this annotation is for.<br> |
| 316 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 317 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 318 | "data": "A String", # User-created data for this annotation.<br> |
| 319 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 320 | "selfLink": "A String", # URL to this resource.<br> |
| 321 | },<br> |
| 322 | ],<br> |
| 323 | "kind": "books#annotations", # Resource type.<br> |
| 324 | "totalItems": 42, # Total number of annotations found. This may be greater than the number of notes returned in this response if results have been paginated.<br> |
| 325 | }</tt></dd></dl> |
| 326 | |
| 327 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous_request, previous_response)</dt><dd><tt>Retrieves the next page of results.<br> |
| 328 | <br> |
| 329 | Args:<br> |
| 330 | previous_request: The request for the previous page.<br> |
| 331 | previous_response: The response from the request for the previous page.<br> |
| 332 | <br> |
| 333 | Returns:<br> |
| 334 | A request object that you can call 'execute()' on to request the next<br> |
| 335 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 336 | |
| 337 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an existing annotation.<br> |
| 338 | <br> |
| 339 | Args:<br> |
| 340 | body: object, The request body. (required)<br> |
| 341 | The object takes the form of:<br> |
| 342 | <br> |
| 343 | {<br> |
| 344 | "kind": "books#annotation", # Resource type.<br> |
| 345 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 346 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 347 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 348 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 349 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 350 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 351 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 352 | "startPosition": "A String", # The starting position for the range.<br> |
| 353 | "endPosition": "A String", # The ending position for the range.<br> |
| 354 | "startOffset": "A String", # The offset from the starting position.<br> |
| 355 | "endOffset": "A String", # The offset from the ending position.<br> |
| 356 | },<br> |
| 357 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 358 | "startPosition": "A String", # The starting position for the range.<br> |
| 359 | "endPosition": "A String", # The ending position for the range.<br> |
| 360 | "startOffset": "A String", # The offset from the starting position.<br> |
| 361 | "endOffset": "A String", # The offset from the ending position.<br> |
| 362 | },<br> |
| 363 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 364 | "startPosition": "A String", # The starting position for the range.<br> |
| 365 | "endPosition": "A String", # The ending position for the range.<br> |
| 366 | "startOffset": "A String", # The offset from the starting position.<br> |
| 367 | "endOffset": "A String", # The offset from the ending position.<br> |
| 368 | },<br> |
| 369 | },<br> |
| 370 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 371 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 372 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 373 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 374 | "startPosition": "A String", # The starting position for the range.<br> |
| 375 | "endPosition": "A String", # The ending position for the range.<br> |
| 376 | "startOffset": "A String", # The offset from the starting position.<br> |
| 377 | "endOffset": "A String", # The offset from the ending position.<br> |
| 378 | },<br> |
| 379 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 380 | "startPosition": "A String", # The starting position for the range.<br> |
| 381 | "endPosition": "A String", # The ending position for the range.<br> |
| 382 | "startOffset": "A String", # The offset from the starting position.<br> |
| 383 | "endOffset": "A String", # The offset from the ending position.<br> |
| 384 | },<br> |
| 385 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 386 | "startPosition": "A String", # The starting position for the range.<br> |
| 387 | "endPosition": "A String", # The ending position for the range.<br> |
| 388 | "startOffset": "A String", # The offset from the starting position.<br> |
| 389 | "endOffset": "A String", # The offset from the ending position.<br> |
| 390 | },<br> |
| 391 | },<br> |
| 392 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 393 | "pageIds": [ # Pages that this annotation spans.<br> |
| 394 | "A String",<br> |
| 395 | ],<br> |
| 396 | "layerId": "A String", # The layer this annotation is for.<br> |
| 397 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 398 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 399 | "data": "A String", # User-created data for this annotation.<br> |
| 400 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 401 | "selfLink": "A String", # URL to this resource.<br> |
| 402 | }<br> |
| 403 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 404 | pp: string, A parameter<br> |
| 405 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 406 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 407 | annotationId: string, The ID for the annotation to update. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 408 | strict: string, A parameter<br> |
| 409 | userip: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 410 | <br> |
| 411 | Returns:<br> |
| 412 | An object of the form<br> |
| 413 | <br> |
| 414 | {<br> |
| 415 | "kind": "books#annotation", # Resource type.<br> |
| 416 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 417 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 418 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 419 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 420 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 421 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 422 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 423 | "startPosition": "A String", # The starting position for the range.<br> |
| 424 | "endPosition": "A String", # The ending position for the range.<br> |
| 425 | "startOffset": "A String", # The offset from the starting position.<br> |
| 426 | "endOffset": "A String", # The offset from the ending position.<br> |
| 427 | },<br> |
| 428 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 429 | "startPosition": "A String", # The starting position for the range.<br> |
| 430 | "endPosition": "A String", # The ending position for the range.<br> |
| 431 | "startOffset": "A String", # The offset from the starting position.<br> |
| 432 | "endOffset": "A String", # The offset from the ending position.<br> |
| 433 | },<br> |
| 434 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 435 | "startPosition": "A String", # The starting position for the range.<br> |
| 436 | "endPosition": "A String", # The ending position for the range.<br> |
| 437 | "startOffset": "A String", # The offset from the starting position.<br> |
| 438 | "endOffset": "A String", # The offset from the ending position.<br> |
| 439 | },<br> |
| 440 | },<br> |
| 441 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 442 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 443 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 444 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 445 | "startPosition": "A String", # The starting position for the range.<br> |
| 446 | "endPosition": "A String", # The ending position for the range.<br> |
| 447 | "startOffset": "A String", # The offset from the starting position.<br> |
| 448 | "endOffset": "A String", # The offset from the ending position.<br> |
| 449 | },<br> |
| 450 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 451 | "startPosition": "A String", # The starting position for the range.<br> |
| 452 | "endPosition": "A String", # The ending position for the range.<br> |
| 453 | "startOffset": "A String", # The offset from the starting position.<br> |
| 454 | "endOffset": "A String", # The offset from the ending position.<br> |
| 455 | },<br> |
| 456 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 457 | "startPosition": "A String", # The starting position for the range.<br> |
| 458 | "endPosition": "A String", # The ending position for the range.<br> |
| 459 | "startOffset": "A String", # The offset from the starting position.<br> |
| 460 | "endOffset": "A String", # The offset from the ending position.<br> |
| 461 | },<br> |
| 462 | },<br> |
| 463 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 464 | "pageIds": [ # Pages that this annotation spans.<br> |
| 465 | "A String",<br> |
| 466 | ],<br> |
| 467 | "layerId": "A String", # The layer this annotation is for.<br> |
| 468 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 469 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 470 | "data": "A String", # User-created data for this annotation.<br> |
| 471 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 472 | "selfLink": "A String", # URL to this resource.<br> |
| 473 | }</tt></dd></dl> |
| 474 | |
| 475 | <hr> |
| 476 | Data descriptors defined here:<br> |
| 477 | <dl><dt><strong>__dict__</strong></dt> |
| 478 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 479 | </dl> |
| 480 | <dl><dt><strong>__weakref__</strong></dt> |
| 481 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 482 | </dl> |
| 483 | </td></tr></table> |
| 484 | </body></html> |