John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="books_v1.html">Books API</a> . <a href="books_v1.layers.html">layers</a> . <a href="books_v1.layers.volumeAnnotations.html">volumeAnnotations</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 78 | <code><a href="#get">get(volumeId, layerId, annotationId, source=None, locale=None, x__xgafv=None)</a></code></p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 79 | <p class="firstline">Gets the volume annotation.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 81 | <code><a href="#list">list(volumeId, layerId, updatedMin=None, showDeleted=None, endOffset=None, contentVersion=None, pageToken=None, updatedMax=None, volumeAnnotationsVersion=None, endPosition=None, maxResults=None, source=None, startOffset=None, startPosition=None, locale=None, x__xgafv=None)</a></code></p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 82 | <p class="firstline">Gets the volume annotations for a volume and layer.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 85 | <p class="firstline">Retrieves the next page of results.</p> |
| 86 | <h3>Method Details</h3> |
| 87 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 88 | <code class="details" id="get">get(volumeId, layerId, annotationId, source=None, locale=None, x__xgafv=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 89 | <pre>Gets the volume annotation. |
| 90 | |
| 91 | Args: |
| 92 | volumeId: string, The volume to retrieve annotations for. (required) |
| 93 | layerId: string, The ID for the layer to get the annotations. (required) |
| 94 | annotationId: string, The ID of the volume annotation to retrieve. (required) |
| 95 | source: string, String to identify the originator of this request. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 96 | locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
| 97 | x__xgafv: string, V1 error format. |
| 98 | Allowed values |
| 99 | 1 - v1 error format |
| 100 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 101 | |
| 102 | Returns: |
| 103 | An object of the form: |
| 104 | |
| 105 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 106 | "selfLink": "A String", # URL to this resource. |
| 107 | "volumeId": "A String", # The Volume this annotation is for. |
| 108 | "updated": "A String", # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 109 | "annotationDataId": "A String", # The annotation data id for this volume annotation. |
| 110 | "annotationDataLink": "A String", # Link to get data for this annotation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 111 | "pageIds": [ # Pages the annotation spans. |
| 112 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 113 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 114 | "layerId": "A String", # The Layer this annotation is for. |
| 115 | "id": "A String", # Unique id of this volume annotation. |
| 116 | "annotationType": "A String", # The type of annotation this is. |
| 117 | "kind": "A String", # Resource Type |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 118 | "selectedText": "A String", # Excerpt from the volume. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 119 | "data": "A String", # Data for this annotation. |
| 120 | "deleted": True or False, # Indicates that this annotation is deleted. |
| 121 | "contentRanges": { # The content ranges to identify the selected text. |
| 122 | "gbTextRange": { # Range in GB text format for this annotation for version above. |
| 123 | "endPosition": "A String", # The ending position for the range. |
| 124 | "startOffset": "A String", # The offset from the starting position. |
| 125 | "startPosition": "A String", # The starting position for the range. |
| 126 | "endOffset": "A String", # The offset from the ending position. |
| 127 | }, |
| 128 | "contentVersion": "A String", # Content version applicable to ranges below. |
| 129 | "gbImageRange": { # Range in GB image format for this annotation for version above. |
| 130 | "endPosition": "A String", # The ending position for the range. |
| 131 | "startOffset": "A String", # The offset from the starting position. |
| 132 | "startPosition": "A String", # The starting position for the range. |
| 133 | "endOffset": "A String", # The offset from the ending position. |
| 134 | }, |
| 135 | "cfiRange": { # Range in CFI format for this annotation for version above. |
| 136 | "endPosition": "A String", # The ending position for the range. |
| 137 | "startOffset": "A String", # The offset from the starting position. |
| 138 | "startPosition": "A String", # The starting position for the range. |
| 139 | "endOffset": "A String", # The offset from the ending position. |
| 140 | }, |
| 141 | }, |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 142 | }</pre> |
| 143 | </div> |
| 144 | |
| 145 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 146 | <code class="details" id="list">list(volumeId, layerId, updatedMin=None, showDeleted=None, endOffset=None, contentVersion=None, pageToken=None, updatedMax=None, volumeAnnotationsVersion=None, endPosition=None, maxResults=None, source=None, startOffset=None, startPosition=None, locale=None, x__xgafv=None)</code> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 147 | <pre>Gets the volume annotations for a volume and layer. |
| 148 | |
| 149 | Args: |
| 150 | volumeId: string, The volume to retrieve annotations for. (required) |
| 151 | layerId: string, The ID for the layer to get the annotations. (required) |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 152 | updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 153 | showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 154 | endOffset: string, The end offset to end retrieving data from. |
| 155 | contentVersion: string, The content version for the requested volume. |
| 156 | pageToken: string, The value of the nextToken from the previous page. |
| 157 | updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). |
| 158 | volumeAnnotationsVersion: string, The version of the volume annotations that you are requesting. |
| 159 | endPosition: string, The end position to end retrieving data from. |
| 160 | maxResults: integer, Maximum number of results to return |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 161 | source: string, String to identify the originator of this request. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 162 | startOffset: string, The start offset to start retrieving data from. |
| 163 | startPosition: string, The start position to start retrieving data from. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 164 | locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
| 165 | x__xgafv: string, V1 error format. |
| 166 | Allowed values |
| 167 | 1 - v1 error format |
| 168 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 169 | |
| 170 | Returns: |
| 171 | An object of the form: |
| 172 | |
| 173 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 174 | "items": [ # A list of volume annotations. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 175 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 176 | "selfLink": "A String", # URL to this resource. |
| 177 | "volumeId": "A String", # The Volume this annotation is for. |
| 178 | "updated": "A String", # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 179 | "annotationDataId": "A String", # The annotation data id for this volume annotation. |
| 180 | "annotationDataLink": "A String", # Link to get data for this annotation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 181 | "pageIds": [ # Pages the annotation spans. |
| 182 | "A String", |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 183 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 184 | "layerId": "A String", # The Layer this annotation is for. |
| 185 | "id": "A String", # Unique id of this volume annotation. |
| 186 | "annotationType": "A String", # The type of annotation this is. |
| 187 | "kind": "A String", # Resource Type |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 188 | "selectedText": "A String", # Excerpt from the volume. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 189 | "data": "A String", # Data for this annotation. |
| 190 | "deleted": True or False, # Indicates that this annotation is deleted. |
| 191 | "contentRanges": { # The content ranges to identify the selected text. |
| 192 | "gbTextRange": { # Range in GB text format for this annotation for version above. |
| 193 | "endPosition": "A String", # The ending position for the range. |
| 194 | "startOffset": "A String", # The offset from the starting position. |
| 195 | "startPosition": "A String", # The starting position for the range. |
| 196 | "endOffset": "A String", # The offset from the ending position. |
| 197 | }, |
| 198 | "contentVersion": "A String", # Content version applicable to ranges below. |
| 199 | "gbImageRange": { # Range in GB image format for this annotation for version above. |
| 200 | "endPosition": "A String", # The ending position for the range. |
| 201 | "startOffset": "A String", # The offset from the starting position. |
| 202 | "startPosition": "A String", # The starting position for the range. |
| 203 | "endOffset": "A String", # The offset from the ending position. |
| 204 | }, |
| 205 | "cfiRange": { # Range in CFI format for this annotation for version above. |
| 206 | "endPosition": "A String", # The ending position for the range. |
| 207 | "startOffset": "A String", # The offset from the starting position. |
| 208 | "startPosition": "A String", # The starting position for the range. |
| 209 | "endOffset": "A String", # The offset from the ending position. |
| 210 | }, |
| 211 | }, |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 212 | }, |
| 213 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 214 | "version": "A String", # The version string for all of the volume annotations in this layer (not just the ones in this response). Note: the version string doesn't apply to the annotation data, just the information in this response (e.g. the location of annotations in the book). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 215 | "kind": "A String", # Resource type |
| 216 | "totalItems": 42, # The total number of volume annotations found. |
| 217 | "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. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 218 | }</pre> |
| 219 | </div> |
| 220 | |
| 221 | <div class="method"> |
| 222 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 223 | <pre>Retrieves the next page of results. |
| 224 | |
| 225 | Args: |
| 226 | previous_request: The request for the previous page. (required) |
| 227 | previous_response: The response from the request for the previous page. (required) |
| 228 | |
| 229 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 230 | A request object that you can call 'execute()' on to request the next |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 231 | page. Returns None if there are no more items in the collection. |
| 232 | </pre> |
| 233 | </div> |
| 234 | |
| 235 | </body></html> |