blob: 6c39964f704f2a850c9a72d4a23a8cdb22192c2b [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">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#get">get(volumeId, layerId, annotationId, locale=None, source=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Gets the volume annotation.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#list">list(volumeId, layerId, contentVersion, endOffset=None, endPosition=None, locale=None, maxResults=None, pageToken=None, showDeleted=None, source=None, startOffset=None, startPosition=None, updatedMax=None, updatedMin=None, volumeAnnotationsVersion=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<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 Kim65020912020-05-20 12:08:20 -070088 <code class="details" id="get">get(volumeId, layerId, annotationId, locale=None, source=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040089 <pre>Gets the volume annotation.
90
91Args:
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)
Bu Sun Kim65020912020-05-20 12:08:20 -070095 locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: &#x27;en_US&#x27;.
John Asmuth614db982014-04-24 15:46:26 -040096 source: string, String to identify the originator of this request.
John Asmuth614db982014-04-24 15:46:26 -040097
98Returns:
99 An object of the form:
100
101 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700102 &quot;annotationDataId&quot;: &quot;A String&quot;, # The annotation data id for this volume annotation.
103 &quot;annotationDataLink&quot;: &quot;A String&quot;, # Link to get data for this annotation.
104 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this is.
105 &quot;contentRanges&quot;: { # The content ranges to identify the selected text.
106 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
107 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
108 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
109 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
110 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400111 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700112 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
113 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
114 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
115 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
116 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
117 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400118 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
120 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
121 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
122 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
123 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400124 },
125 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;data&quot;: &quot;A String&quot;, # Data for this annotation.
127 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
128 &quot;id&quot;: &quot;A String&quot;, # Unique id of this volume annotation.
129 &quot;kind&quot;: &quot;books#volumeannotation&quot;, # Resource Type
130 &quot;layerId&quot;: &quot;A String&quot;, # The Layer this annotation is for.
131 &quot;pageIds&quot;: [ # Pages the annotation spans.
132 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400133 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
135 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
136 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format).
137 &quot;volumeId&quot;: &quot;A String&quot;, # The Volume this annotation is for.
John Asmuth614db982014-04-24 15:46:26 -0400138 }</pre>
139</div>
140
141<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 <code class="details" id="list">list(volumeId, layerId, contentVersion, endOffset=None, endPosition=None, locale=None, maxResults=None, pageToken=None, showDeleted=None, source=None, startOffset=None, startPosition=None, updatedMax=None, updatedMin=None, volumeAnnotationsVersion=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400143 <pre>Gets the volume annotations for a volume and layer.
144
145Args:
146 volumeId: string, The volume to retrieve annotations for. (required)
147 layerId: string, The ID for the layer to get the annotations. (required)
148 contentVersion: string, The content version for the requested volume. (required)
John Asmuth614db982014-04-24 15:46:26 -0400149 endOffset: string, The end offset to end retrieving data from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 endPosition: string, The end position to end retrieving data from.
151 locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: &#x27;en_US&#x27;.
John Asmuth614db982014-04-24 15:46:26 -0400152 maxResults: integer, Maximum number of results to return
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 pageToken: string, The value of the nextToken from the previous page.
154 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 -0400155 source: string, String to identify the originator of this request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 startOffset: string, The start offset to start retrieving data from.
157 startPosition: string, The start position to start retrieving data from.
158 updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
159 updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
160 volumeAnnotationsVersion: string, The version of the volume annotations that you are requesting.
John Asmuth614db982014-04-24 15:46:26 -0400161
162Returns:
163 An object of the form:
164
165 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;items&quot;: [ # A list of volume annotations.
John Asmuth614db982014-04-24 15:46:26 -0400167 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;annotationDataId&quot;: &quot;A String&quot;, # The annotation data id for this volume annotation.
169 &quot;annotationDataLink&quot;: &quot;A String&quot;, # Link to get data for this annotation.
170 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this is.
171 &quot;contentRanges&quot;: { # The content ranges to identify the selected text.
172 &quot;cfiRange&quot;: { # Range in CFI format for this annotation for version above.
173 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
174 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
175 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
176 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400177 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;contentVersion&quot;: &quot;A String&quot;, # Content version applicable to ranges below.
179 &quot;gbImageRange&quot;: { # Range in GB image format for this annotation for version above.
180 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
181 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
182 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
183 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400184 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;gbTextRange&quot;: { # Range in GB text format for this annotation for version above.
186 &quot;endOffset&quot;: &quot;A String&quot;, # The offset from the ending position.
187 &quot;endPosition&quot;: &quot;A String&quot;, # The ending position for the range.
188 &quot;startOffset&quot;: &quot;A String&quot;, # The offset from the starting position.
189 &quot;startPosition&quot;: &quot;A String&quot;, # The starting position for the range.
John Asmuth614db982014-04-24 15:46:26 -0400190 },
191 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;data&quot;: &quot;A String&quot;, # Data for this annotation.
193 &quot;deleted&quot;: True or False, # Indicates that this annotation is deleted.
194 &quot;id&quot;: &quot;A String&quot;, # Unique id of this volume annotation.
195 &quot;kind&quot;: &quot;books#volumeannotation&quot;, # Resource Type
196 &quot;layerId&quot;: &quot;A String&quot;, # The Layer this annotation is for.
197 &quot;pageIds&quot;: [ # Pages the annotation spans.
198 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;selectedText&quot;: &quot;A String&quot;, # Excerpt from the volume.
201 &quot;selfLink&quot;: &quot;A String&quot;, # URL to this resource.
202 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format).
203 &quot;volumeId&quot;: &quot;A String&quot;, # The Volume this annotation is for.
John Asmuth614db982014-04-24 15:46:26 -0400204 },
205 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;kind&quot;: &quot;books#volumeannotations&quot;, # Resource type
207 &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.
208 &quot;totalItems&quot;: 42, # The total number of volume annotations found.
209 &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).
John Asmuth614db982014-04-24 15:46:26 -0400210 }</pre>
211</div>
212
213<div class="method">
214 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
215 <pre>Retrieves the next page of results.
216
217Args:
218 previous_request: The request for the previous page. (required)
219 previous_response: The response from the request for the previous page. (required)
220
221Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400223 page. Returns None if there are no more items in the collection.
224 </pre>
225</div>
226
227</body></html>