blob: f361ea65bd65ea91e5d39692d6b623107c2faf98 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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.mylibrary.html">mylibrary</a> . <a href="books_v1.mylibrary.annotations.html">annotations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(annotationId, source=None)</a></code></p>
79<p class="firstline">Deletes an annotation.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#insert">insert(body=None, annotationId=None, country=None, showOnlySummaryInResponse=None, source=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Inserts a new annotation.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(contentVersion=None, layerId=None, layerIds=None, maxResults=None, pageToken=None, showDeleted=None, source=None, updatedMax=None, updatedMin=None, volumeId=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Retrieves a list of annotations, possibly filtered.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90 <code><a href="#summary">summary(layerIds, volumeId)</a></code></p>
91<p class="firstline">Gets the summary of specified layers.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(annotationId, body=None, source=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Updates an existing annotation.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="delete">delete(annotationId, source=None)</code>
98 <pre>Deletes an annotation.
99
100Args:
101 annotationId: string, The ID for the annotation to delete. (required)
102 source: string, String to identify the originator of this request.
103</pre>
104</div>
105
106<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 <code class="details" id="insert">insert(body=None, annotationId=None, country=None, showOnlySummaryInResponse=None, source=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400108 <pre>Inserts a new annotation.
109
110Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400112 The object takes the form of:
113
114{
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;afterSelectedText&quot;: &quot;A String&quot;, # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
116 &quot;beforeSelectedText&quot;: &quot;A String&quot;, # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
117 &quot;clientVersionRanges&quot;: { # Selection ranges sent from the client.
118 &quot;cfiRange&quot;: { # Range in CFI format for this annotation sent by client.
119 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
120 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
121 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
122 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400123 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version the client sent in.
125 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation sent by client.
126 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
127 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
128 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
129 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400130 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation sent by client.
132 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
133 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
134 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
135 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400136 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation sent by client.
138 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
139 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
140 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
141 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400142 },
143 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 &quot;created&quot;: &quot;A String&quot;, # Timestamp for the created time of this annotation.
145 &quot;currentVersionRanges&quot;: { # Selection ranges for the most recent content version.
146 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
147 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
148 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
149 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
150 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400151 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
153 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
154 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
155 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
156 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
157 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400158 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
160 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
161 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
162 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
163 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400164 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation for version above.
166 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
167 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
168 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
169 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400170 },
171 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;data&quot;: &quot;A String&quot;, # User-created data for this annotation.
173 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
174 &quot;highlightStyle&quot;: &quot;A String&quot;, # The highlight style for this annotation.
175 &quot;id&quot;: &quot;A String&quot;, # Id of this annotation, in the form of a GUID.
176 &quot;kind&quot;: &quot;books#annotation&quot;, # Resource type.
177 &quot;layerId&quot;: &quot;A String&quot;, # The layer this annotation is for.
178 &quot;layerSummary&quot;: {
179 &quot;allowedCharacterCount&quot;: 42, # Maximum allowed characters on this layer, especially for the &quot;copy&quot; layer.
180 &quot;limitType&quot;: &quot;A String&quot;, # Type of limitation on this layer. &quot;limited&quot; or &quot;unlimited&quot; for the &quot;copy&quot; layer.
181 &quot;remainingCharacterCount&quot;: 42, # Remaining allowed characters on this layer, especially for the &quot;copy&quot; layer.
John Asmuth614db982014-04-24 15:46:26 -0400182 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;pageIds&quot;: [ # Pages that this annotation spans.
184 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400185 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
187 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
188 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this annotation was modified.
189 &quot;volumeId&quot;: &quot;A String&quot;, # The volume that this annotation belongs to.
John Asmuth614db982014-04-24 15:46:26 -0400190 }
191
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 annotationId: string, The ID for the annotation to insert.
Craig Citroe633be12015-03-02 13:40:36 -0800193 country: string, ISO-3166-1 code to override the IP-based location.
John Asmuth614db982014-04-24 15:46:26 -0400194 showOnlySummaryInResponse: boolean, Requests that only the summary of the specified layer be provided in the response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 source: string, String to identify the originator of this request.
John Asmuth614db982014-04-24 15:46:26 -0400196
197Returns:
198 An object of the form:
199
200 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &quot;afterSelectedText&quot;: &quot;A String&quot;, # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
202 &quot;beforeSelectedText&quot;: &quot;A String&quot;, # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
203 &quot;clientVersionRanges&quot;: { # Selection ranges sent from the client.
204 &quot;cfiRange&quot;: { # Range in CFI format for this annotation sent by client.
205 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
206 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
207 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
208 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400209 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version the client sent in.
211 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation sent by client.
212 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
213 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
214 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
215 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400216 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation sent by client.
218 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
219 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
220 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
221 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400222 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation sent by client.
224 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
225 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
226 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
227 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400228 },
229 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;created&quot;: &quot;A String&quot;, # Timestamp for the created time of this annotation.
231 &quot;currentVersionRanges&quot;: { # Selection ranges for the most recent content version.
232 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
233 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
234 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
235 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
236 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400237 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
239 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
240 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
241 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
242 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
243 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400244 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
246 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
247 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
248 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
249 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400250 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation for version above.
252 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
253 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
254 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
255 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400256 },
257 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;data&quot;: &quot;A String&quot;, # User-created data for this annotation.
259 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
260 &quot;highlightStyle&quot;: &quot;A String&quot;, # The highlight style for this annotation.
261 &quot;id&quot;: &quot;A String&quot;, # Id of this annotation, in the form of a GUID.
262 &quot;kind&quot;: &quot;books#annotation&quot;, # Resource type.
263 &quot;layerId&quot;: &quot;A String&quot;, # The layer this annotation is for.
264 &quot;layerSummary&quot;: {
265 &quot;allowedCharacterCount&quot;: 42, # Maximum allowed characters on this layer, especially for the &quot;copy&quot; layer.
266 &quot;limitType&quot;: &quot;A String&quot;, # Type of limitation on this layer. &quot;limited&quot; or &quot;unlimited&quot; for the &quot;copy&quot; layer.
267 &quot;remainingCharacterCount&quot;: 42, # Remaining allowed characters on this layer, especially for the &quot;copy&quot; layer.
John Asmuth614db982014-04-24 15:46:26 -0400268 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;pageIds&quot;: [ # Pages that this annotation spans.
270 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400271 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
273 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
274 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this annotation was modified.
275 &quot;volumeId&quot;: &quot;A String&quot;, # The volume that this annotation belongs to.
John Asmuth614db982014-04-24 15:46:26 -0400276 }</pre>
277</div>
278
279<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 <code class="details" id="list">list(contentVersion=None, layerId=None, layerIds=None, maxResults=None, pageToken=None, showDeleted=None, source=None, updatedMax=None, updatedMin=None, volumeId=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400281 <pre>Retrieves a list of annotations, possibly filtered.
282
283Args:
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000284 contentVersion: string, The content version for the requested volume.
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 layerId: string, The layer ID to limit annotation by.
286 layerIds: string, The layer ID(s) to limit annotation by. (repeated)
287 maxResults: integer, Maximum number of results to return
288 pageToken: string, The value of the nextToken from the previous page.
289 showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
John Asmuth614db982014-04-24 15:46:26 -0400290 source: string, String to identify the originator of this request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000292 updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 volumeId: string, The volume to restrict annotations to.
John Asmuth614db982014-04-24 15:46:26 -0400294
295Returns:
296 An object of the form:
297
298 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;items&quot;: [ # A list of annotations.
John Asmuth614db982014-04-24 15:46:26 -0400300 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;afterSelectedText&quot;: &quot;A String&quot;, # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
302 &quot;beforeSelectedText&quot;: &quot;A String&quot;, # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
303 &quot;clientVersionRanges&quot;: { # Selection ranges sent from the client.
304 &quot;cfiRange&quot;: { # Range in CFI format for this annotation sent by client.
305 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
306 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
307 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
308 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400309 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version the client sent in.
311 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation sent by client.
312 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
313 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
314 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
315 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400316 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation sent by client.
318 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
319 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
320 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
321 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400322 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation sent by client.
324 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
325 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
326 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
327 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400328 },
329 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &quot;created&quot;: &quot;A String&quot;, # Timestamp for the created time of this annotation.
331 &quot;currentVersionRanges&quot;: { # Selection ranges for the most recent content version.
332 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
333 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
334 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
335 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
336 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400337 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
339 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
340 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
341 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
342 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
343 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400344 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
346 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
347 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
348 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
349 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400350 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation for version above.
352 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
353 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
354 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
355 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400356 },
357 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;data&quot;: &quot;A String&quot;, # User-created data for this annotation.
359 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
360 &quot;highlightStyle&quot;: &quot;A String&quot;, # The highlight style for this annotation.
361 &quot;id&quot;: &quot;A String&quot;, # Id of this annotation, in the form of a GUID.
362 &quot;kind&quot;: &quot;books#annotation&quot;, # Resource type.
363 &quot;layerId&quot;: &quot;A String&quot;, # The layer this annotation is for.
364 &quot;layerSummary&quot;: {
365 &quot;allowedCharacterCount&quot;: 42, # Maximum allowed characters on this layer, especially for the &quot;copy&quot; layer.
366 &quot;limitType&quot;: &quot;A String&quot;, # Type of limitation on this layer. &quot;limited&quot; or &quot;unlimited&quot; for the &quot;copy&quot; layer.
367 &quot;remainingCharacterCount&quot;: 42, # Remaining allowed characters on this layer, especially for the &quot;copy&quot; layer.
John Asmuth614db982014-04-24 15:46:26 -0400368 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;pageIds&quot;: [ # Pages that this annotation spans.
370 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400371 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
373 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
374 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this annotation was modified.
375 &quot;volumeId&quot;: &quot;A String&quot;, # The volume that this annotation belongs to.
John Asmuth614db982014-04-24 15:46:26 -0400376 },
377 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 &quot;kind&quot;: &quot;books#annotations&quot;, # Resource type.
379 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to pass in for pagination for the next page. This will not be present if this request does not have more results.
380 &quot;totalItems&quot;: 42, # Total number of annotations found. This may be greater than the number of notes returned in this response if results have been paginated.
John Asmuth614db982014-04-24 15:46:26 -0400381 }</pre>
382</div>
383
384<div class="method">
385 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
386 <pre>Retrieves the next page of results.
387
388Args:
389 previous_request: The request for the previous page. (required)
390 previous_response: The response from the request for the previous page. (required)
391
392Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400394 page. Returns None if there are no more items in the collection.
395 </pre>
396</div>
397
398<div class="method">
399 <code class="details" id="summary">summary(layerIds, volumeId)</code>
400 <pre>Gets the summary of specified layers.
401
402Args:
403 layerIds: string, Array of layer IDs to get the summary for. (required) (repeated)
404 volumeId: string, Volume id to get the summary for. (required)
405
406Returns:
407 An object of the form:
408
409 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;kind&quot;: &quot;books#annotationsSummary&quot;,
411 &quot;layers&quot;: [
John Asmuth614db982014-04-24 15:46:26 -0400412 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;allowedCharacterCount&quot;: 42,
414 &quot;layerId&quot;: &quot;A String&quot;,
415 &quot;limitType&quot;: &quot;A String&quot;,
416 &quot;remainingCharacterCount&quot;: 42,
417 &quot;updated&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400418 },
419 ],
John Asmuth614db982014-04-24 15:46:26 -0400420 }</pre>
421</div>
422
423<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700424 <code class="details" id="update">update(annotationId, body=None, source=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400425 <pre>Updates an existing annotation.
426
427Args:
428 annotationId: string, The ID for the annotation to update. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700429 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400430 The object takes the form of:
431
432{
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &quot;afterSelectedText&quot;: &quot;A String&quot;, # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
434 &quot;beforeSelectedText&quot;: &quot;A String&quot;, # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
435 &quot;clientVersionRanges&quot;: { # Selection ranges sent from the client.
436 &quot;cfiRange&quot;: { # Range in CFI format for this annotation sent by client.
437 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
438 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
439 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
440 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400441 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version the client sent in.
443 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation sent by client.
444 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
445 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
446 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
447 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400448 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700449 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation sent by client.
450 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
451 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
452 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
453 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400454 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation sent by client.
456 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
457 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
458 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
459 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400460 },
461 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;created&quot;: &quot;A String&quot;, # Timestamp for the created time of this annotation.
463 &quot;currentVersionRanges&quot;: { # Selection ranges for the most recent content version.
464 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
465 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
466 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
467 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
468 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400469 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700470 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
471 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
472 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
473 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
474 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
475 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400476 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
478 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
479 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
480 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
481 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400482 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation for version above.
484 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
485 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
486 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
487 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400488 },
489 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 &quot;data&quot;: &quot;A String&quot;, # User-created data for this annotation.
491 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
492 &quot;highlightStyle&quot;: &quot;A String&quot;, # The highlight style for this annotation.
493 &quot;id&quot;: &quot;A String&quot;, # Id of this annotation, in the form of a GUID.
494 &quot;kind&quot;: &quot;books#annotation&quot;, # Resource type.
495 &quot;layerId&quot;: &quot;A String&quot;, # The layer this annotation is for.
496 &quot;layerSummary&quot;: {
497 &quot;allowedCharacterCount&quot;: 42, # Maximum allowed characters on this layer, especially for the &quot;copy&quot; layer.
498 &quot;limitType&quot;: &quot;A String&quot;, # Type of limitation on this layer. &quot;limited&quot; or &quot;unlimited&quot; for the &quot;copy&quot; layer.
499 &quot;remainingCharacterCount&quot;: 42, # Remaining allowed characters on this layer, especially for the &quot;copy&quot; layer.
John Asmuth614db982014-04-24 15:46:26 -0400500 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &quot;pageIds&quot;: [ # Pages that this annotation spans.
502 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400503 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
505 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
506 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this annotation was modified.
507 &quot;volumeId&quot;: &quot;A String&quot;, # The volume that this annotation belongs to.
John Asmuth614db982014-04-24 15:46:26 -0400508 }
509
510 source: string, String to identify the originator of this request.
511
512Returns:
513 An object of the form:
514
515 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 &quot;afterSelectedText&quot;: &quot;A String&quot;, # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
517 &quot;beforeSelectedText&quot;: &quot;A String&quot;, # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
518 &quot;clientVersionRanges&quot;: { # Selection ranges sent from the client.
519 &quot;cfiRange&quot;: { # Range in CFI format for this annotation sent by client.
520 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
521 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
522 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
523 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400524 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version the client sent in.
526 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation sent by client.
527 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
528 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
529 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
530 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400531 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700532 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation sent by client.
533 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
534 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
535 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
536 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400537 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation sent by client.
539 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
540 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
541 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
542 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400543 },
544 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;created&quot;: &quot;A String&quot;, # Timestamp for the created time of this annotation.
546 &quot;currentVersionRanges&quot;: { # Selection ranges for the most recent content version.
547 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
548 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
549 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
550 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
551 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400552 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
554 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
555 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
556 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
557 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
558 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400559 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
561 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
562 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
563 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
564 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400565 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 &quot;imageCfiRange&quot;: { # Range in image CFI format for this annotation for version above.
567 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
568 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
569 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
570 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400571 },
572 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700573 &quot;data&quot;: &quot;A String&quot;, # User-created data for this annotation.
574 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
575 &quot;highlightStyle&quot;: &quot;A String&quot;, # The highlight style for this annotation.
576 &quot;id&quot;: &quot;A String&quot;, # Id of this annotation, in the form of a GUID.
577 &quot;kind&quot;: &quot;books#annotation&quot;, # Resource type.
578 &quot;layerId&quot;: &quot;A String&quot;, # The layer this annotation is for.
579 &quot;layerSummary&quot;: {
580 &quot;allowedCharacterCount&quot;: 42, # Maximum allowed characters on this layer, especially for the &quot;copy&quot; layer.
581 &quot;limitType&quot;: &quot;A String&quot;, # Type of limitation on this layer. &quot;limited&quot; or &quot;unlimited&quot; for the &quot;copy&quot; layer.
582 &quot;remainingCharacterCount&quot;: 42, # Remaining allowed characters on this layer, especially for the &quot;copy&quot; layer.
John Asmuth614db982014-04-24 15:46:26 -0400583 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;pageIds&quot;: [ # Pages that this annotation spans.
585 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400586 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
588 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
589 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this annotation was modified.
590 &quot;volumeId&quot;: &quot;A String&quot;, # The volume that this annotation belongs to.
John Asmuth614db982014-04-24 15:46:26 -0400591 }</pre>
592</div>
593
594</body></html>