blob: dd66a71017baef2d44ad24808785f5d820297c57 [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.annotationData.html">annotationData</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#get">get(volumeId, layerId, annotationDataId, w=None, scale=None, source=None, allowWebDefinitions=None, locale=None, h=None, contentVersion=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Gets the annotation data.</p>
80<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#list">list(volumeId, layerId, updatedMax=None, w=None, h=None, contentVersion=None, annotationDataId=None, locale=None, source=None, pageToken=None, updatedMin=None, maxResults=None, scale=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Gets the annotation data 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 Kimd059ad82020-07-22 17:02:09 -070088 <code class="details" id="get">get(volumeId, layerId, annotationDataId, w=None, scale=None, source=None, allowWebDefinitions=None, locale=None, h=None, contentVersion=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040089 <pre>Gets the annotation data.
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 annotationDataId: string, The ID of the annotation data to retrieve. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -070095 w: integer, The requested pixel width for any images. If width is provided height must also be provided.
Bu Sun Kim65020912020-05-20 12:08:20 -070096 scale: integer, The requested scale for the image.
97 source: string, String to identify the originator of this request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070098 allowWebDefinitions: boolean, For the dictionary layer. Whether or not to allow web definitions.
99 locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: &#x27;en_US&#x27;.
100 h: integer, The requested pixel height for any images. If height is provided width must also be provided.
101 contentVersion: string, The content version for the volume you are trying to retrieve.
102 x__xgafv: string, V1 error format.
103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400106
107Returns:
108 An object of the form:
109
110 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700111 &quot;data&quot;: { # JSON encoded data for this dictionary annotation data. Emitted with name &#x27;data&#x27; in JSON output. Either this or geo_data will be populated.
112 &quot;common&quot;: {
113 &quot;title&quot;: &quot;A String&quot;, # The display title and localized canonical name to use when searching for this entity on Google search.
114 },
115 &quot;kind&quot;: &quot;A String&quot;,
116 &quot;dict&quot;: {
117 &quot;words&quot;: [
118 {
119 &quot;derivatives&quot;: [
120 {
121 &quot;source&quot;: {
122 &quot;url&quot;: &quot;A String&quot;,
123 &quot;attribution&quot;: &quot;A String&quot;,
124 },
125 &quot;text&quot;: &quot;A String&quot;,
126 },
127 ],
128 &quot;examples&quot;: [
129 {
130 &quot;source&quot;: {
131 &quot;url&quot;: &quot;A String&quot;,
132 &quot;attribution&quot;: &quot;A String&quot;,
133 },
134 &quot;text&quot;: &quot;A String&quot;,
135 },
136 ],
137 &quot;source&quot;: { # The words with different meanings but not related words, e.g. &quot;go&quot; (game) and &quot;go&quot; (verb).
138 &quot;attribution&quot;: &quot;A String&quot;,
139 &quot;url&quot;: &quot;A String&quot;,
140 },
141 &quot;senses&quot;: [
142 {
143 &quot;definitions&quot;: [
144 {
145 &quot;examples&quot;: [
146 {
147 &quot;source&quot;: {
148 &quot;url&quot;: &quot;A String&quot;,
149 &quot;attribution&quot;: &quot;A String&quot;,
150 },
151 &quot;text&quot;: &quot;A String&quot;,
152 },
153 ],
154 &quot;definition&quot;: &quot;A String&quot;,
155 },
156 ],
157 &quot;syllabification&quot;: &quot;A String&quot;,
158 &quot;source&quot;: {
159 &quot;url&quot;: &quot;A String&quot;,
160 &quot;attribution&quot;: &quot;A String&quot;,
161 },
162 &quot;conjugations&quot;: [
163 {
164 &quot;value&quot;: &quot;A String&quot;,
165 &quot;type&quot;: &quot;A String&quot;,
166 },
167 ],
168 &quot;synonyms&quot;: [
169 {
170 &quot;text&quot;: &quot;A String&quot;,
171 &quot;source&quot;: {
172 &quot;url&quot;: &quot;A String&quot;,
173 &quot;attribution&quot;: &quot;A String&quot;,
174 },
175 },
176 ],
177 &quot;pronunciationUrl&quot;: &quot;A String&quot;,
178 &quot;partOfSpeech&quot;: &quot;A String&quot;,
179 &quot;pronunciation&quot;: &quot;A String&quot;,
180 },
181 ],
182 },
183 ],
184 &quot;source&quot;: { # The source, url and attribution for this dictionary data.
185 &quot;attribution&quot;: &quot;A String&quot;,
186 &quot;url&quot;: &quot;A String&quot;,
187 },
188 },
189 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 &quot;selfLink&quot;: &quot;A String&quot;, # URL for this resource. *
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700191 &quot;layerId&quot;: &quot;A String&quot;, # The Layer id for this data. *
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;volumeId&quot;: &quot;A String&quot;, # The volume id for this data. *
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700193 &quot;id&quot;: &quot;A String&quot;, # Unique id for this annotation data.
194 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format).
195 &quot;kind&quot;: &quot;A String&quot;, # Resource Type
196 &quot;encodedData&quot;: &quot;A String&quot;, # Base64 encoded data for this annotation data.
197 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this data is for.
John Asmuth614db982014-04-24 15:46:26 -0400198 }</pre>
199</div>
200
201<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700202 <code class="details" id="list">list(volumeId, layerId, updatedMax=None, w=None, h=None, contentVersion=None, annotationDataId=None, locale=None, source=None, pageToken=None, updatedMin=None, maxResults=None, scale=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400203 <pre>Gets the annotation data for a volume and layer.
204
205Args:
206 volumeId: string, The volume to retrieve annotation data for. (required)
207 layerId: string, The ID for the layer to get the annotation data. (required)
John Asmuth614db982014-04-24 15:46:26 -0400208 updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
John Asmuth614db982014-04-24 15:46:26 -0400209 w: integer, The requested pixel width for any images. If width is provided height must also be provided.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 h: integer, The requested pixel height for any images. If height is provided width must also be provided.
211 contentVersion: string, The content version for the requested volume.
212 annotationDataId: string, The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set. (repeated)
213 locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: &#x27;en_US&#x27;.
214 source: string, String to identify the originator of this request.
215 pageToken: string, The value of the nextToken from the previous page.
216 updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
217 maxResults: integer, Maximum number of results to return
218 scale: integer, The requested scale for the image.
219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400223
224Returns:
225 An object of the form:
226
227 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700228 &quot;kind&quot;: &quot;A String&quot;, # Resource type
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;items&quot;: [ # A list of Annotation Data.
John Asmuth614db982014-04-24 15:46:26 -0400230 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 &quot;volumeId&quot;: &quot;A String&quot;, # The volume id for this data. *
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700232 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format).
233 &quot;encodedData&quot;: &quot;A String&quot;, # Base64 encoded data for this annotation data.
234 &quot;layerId&quot;: &quot;A String&quot;, # The Layer id for this data. *
235 &quot;id&quot;: &quot;A String&quot;, # Unique id for this annotation data.
236 &quot;kind&quot;: &quot;A String&quot;, # Resource Type
237 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this data is for.
238 &quot;data&quot;: { # JSON encoded data for this geo annotation data. Emitted with name &#x27;data&#x27; in JSON output. Either this or dict_data will be populated.
239 &quot;geo&quot;: {
240 &quot;cachePolicy&quot;: &quot;A String&quot;, # The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER
241 &quot;mapType&quot;: &quot;A String&quot;, # The type of map that should be used for this location. EX: HYBRID, ROADMAP, SATELLITE, TERRAIN
242 &quot;latitude&quot;: 3.14, # The latitude of the location.
243 &quot;countryCode&quot;: &quot;A String&quot;, # The country code of the location.
244 &quot;boundary&quot;: [ # The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates.
245 &quot;A String&quot;,
246 ],
247 &quot;zoom&quot;: 42, # The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom level, in which the entire world can be seen on one map) to 21+ (down to individual buildings). See: https: //developers.google.com/maps/documentation/staticmaps/#Zoomlevels
248 &quot;longitude&quot;: 3.14, # The longitude of the location.
249 &quot;viewport&quot;: { # The viewport for showing this location. This is a latitude, longitude rectangle.
250 &quot;hi&quot;: {
251 &quot;longitude&quot;: 3.14,
252 &quot;latitude&quot;: 3.14,
253 },
254 &quot;lo&quot;: {
255 &quot;longitude&quot;: 3.14,
256 &quot;latitude&quot;: 3.14,
257 },
258 },
259 },
260 &quot;common&quot;: {
261 &quot;snippetUrl&quot;: &quot;A String&quot;, # The URL for information for this location. Ex: wikipedia link.
262 &quot;snippet&quot;: &quot;A String&quot;, # The description for this location.
263 &quot;lang&quot;: &quot;A String&quot;, # The language of the information url and description.
264 &quot;title&quot;: &quot;A String&quot;, # The display title and localized canonical name to use when searching for this entity on Google search.
265 &quot;previewImageUrl&quot;: &quot;A String&quot;, # The URL for the preview image information.
266 },
267 &quot;kind&quot;: &quot;A String&quot;,
268 },
269 &quot;selfLink&quot;: &quot;A String&quot;, # URL for this resource. *
John Asmuth614db982014-04-24 15:46:26 -0400270 },
271 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;totalItems&quot;: 42, # The total number of volume annotations found.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700273 &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 -0400274 }</pre>
275</div>
276
277<div class="method">
278 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
279 <pre>Retrieves the next page of results.
280
281Args:
282 previous_request: The request for the previous page. (required)
283 previous_response: The response from the request for the previous page. (required)
284
285Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400287 page. Returns None if there are no more items in the collection.
288 </pre>
289</div>
290
291</body></html>