blob: 0d1f1687f5dc632875ce6bb7a7b8fb5d7aa9f403 [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.layers.html">layers</a> . <a href="books_v1.layers.volumeAnnotations.html">volumeAnnotations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080081 <code><a href="#get">get(volumeId, layerId, annotationId, source=None, locale=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Gets the volume annotation.</p>
83<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080084 <code><a href="#list">list(volumeId, layerId, contentVersion, updatedMin=None, startOffset=None, endPosition=None, showDeleted=None, endOffset=None, updatedMax=None, maxResults=None, startPosition=None, pageToken=None, source=None, locale=None, volumeAnnotationsVersion=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Gets the volume annotations for a volume and layer.</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<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080096 <code class="details" id="get">get(volumeId, layerId, annotationId, source=None, locale=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040097 <pre>Gets the volume annotation.
98
99Args:
100 volumeId: string, The volume to retrieve annotations for. (required)
101 layerId: string, The ID for the layer to get the annotations. (required)
102 annotationId: string, The ID of the volume annotation to retrieve. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700103 source: string, String to identify the originator of this request.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800104 locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: &#x27;en_US&#x27;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700105 x__xgafv: string, V1 error format.
106 Allowed values
107 1 - v1 error format
108 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400109
110Returns:
111 An object of the form:
112
113 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800114 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
115 &quot;kind&quot;: &quot;A String&quot;, # Resource Type
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700116 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;pageIds&quot;: [ # Pages the annotation spans.
118 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400119 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800120 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this is.
121 &quot;volumeId&quot;: &quot;A String&quot;, # The Volume this annotation is for.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700122 &quot;id&quot;: &quot;A String&quot;, # Unique id of this volume annotation.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800123 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
124 &quot;layerId&quot;: &quot;A String&quot;, # The Layer this annotation is for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700125 &quot;contentRanges&quot;: { # The content ranges to identify the selected text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700128 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800129 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700130 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
131 },
132 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
133 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700134 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800135 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700136 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700137 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800138 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
139 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
140 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
141 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
142 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
143 },
144 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700145 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800146 &quot;annotationDataLink&quot;: &quot;A String&quot;, # Link to get data for this annotation.
147 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format).
148 &quot;data&quot;: &quot;A String&quot;, # Data for this annotation.
149 &quot;annotationDataId&quot;: &quot;A String&quot;, # The annotation data id for this volume annotation.
John Asmuth614db982014-04-24 15:46:26 -0400150 }</pre>
151</div>
152
153<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800154 <code class="details" id="list">list(volumeId, layerId, contentVersion, updatedMin=None, startOffset=None, endPosition=None, showDeleted=None, endOffset=None, updatedMax=None, maxResults=None, startPosition=None, pageToken=None, source=None, locale=None, volumeAnnotationsVersion=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400155 <pre>Gets the volume annotations for a volume and layer.
156
157Args:
158 volumeId: string, The volume to retrieve annotations for. (required)
159 layerId: string, The ID for the layer to get the annotations. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700160 contentVersion: string, The content version for the requested volume. (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800161 updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 startOffset: string, The start offset to start retrieving data from.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800163 endPosition: string, The end position to end retrieving data from.
164 showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
165 endOffset: string, The end offset to end retrieving data from.
166 updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
167 maxResults: integer, Maximum number of results to return
168 startPosition: string, The start position to start retrieving data from.
169 pageToken: string, The value of the nextToken from the previous page.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700170 source: string, String to identify the originator of this request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700171 locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: &#x27;en_US&#x27;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700172 volumeAnnotationsVersion: string, The version of the volume annotations that you are requesting.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700173 x__xgafv: string, V1 error format.
174 Allowed values
175 1 - v1 error format
176 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400177
178Returns:
179 An object of the form:
180
181 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700182 &quot;version&quot;: &quot;A String&quot;, # The version string for all of the volume annotations in this layer (not just the ones in this response). Note: the version string doesn&#x27;t apply to the annotation data, just the information in this response (e.g. the location of annotations in the book).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800183 &quot;totalItems&quot;: 42, # The total number of volume annotations found.
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;items&quot;: [ # A list of volume annotations.
John Asmuth614db982014-04-24 15:46:26 -0400185 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800186 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
187 &quot;kind&quot;: &quot;A String&quot;, # Resource Type
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700188 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;pageIds&quot;: [ # Pages the annotation spans.
190 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400191 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800192 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this is.
193 &quot;volumeId&quot;: &quot;A String&quot;, # The Volume this annotation is for.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700194 &quot;id&quot;: &quot;A String&quot;, # Unique id of this volume annotation.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800195 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
196 &quot;layerId&quot;: &quot;A String&quot;, # The Layer this annotation is for.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700197 &quot;contentRanges&quot;: { # The content ranges to identify the selected text.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700198 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700200 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800201 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700202 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
203 },
204 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
205 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700206 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800207 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700208 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700209 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800210 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
211 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
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;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
215 },
216 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700217 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800218 &quot;annotationDataLink&quot;: &quot;A String&quot;, # Link to get data for this annotation.
219 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format).
220 &quot;data&quot;: &quot;A String&quot;, # Data for this annotation.
221 &quot;annotationDataId&quot;: &quot;A String&quot;, # The annotation data id for this volume annotation.
John Asmuth614db982014-04-24 15:46:26 -0400222 },
223 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800224 &quot;kind&quot;: &quot;A String&quot;, # Resource type
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700225 &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.
John Asmuth614db982014-04-24 15:46:26 -0400226 }</pre>
227</div>
228
229<div class="method">
230 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
231 <pre>Retrieves the next page of results.
232
233Args:
234 previous_request: The request for the previous page. (required)
235 previous_response: The response from the request for the previous page. (required)
236
237Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400239 page. Returns None if there are no more items in the collection.
240 </pre>
241</div>
242
243</body></html>