blob: df635b7f0d6753e90671f873c780aa98ab4b20cd [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">
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, annotationDataId, contentVersion, scale=None, source=None, w=None, allowWebDefinitions=None, locale=None, h=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Gets the annotation data.</p>
83<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080084 <code><a href="#list">list(volumeId, layerId, contentVersion, w=None, pageToken=None, annotationDataId=None, source=None, maxResults=None, updatedMin=None, scale=None, h=None, updatedMax=None, locale=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Gets the annotation data 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, annotationDataId, contentVersion, scale=None, source=None, w=None, allowWebDefinitions=None, locale=None, h=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040097 <pre>Gets the annotation data.
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 annotationDataId: string, The ID of the annotation data to retrieve. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700103 contentVersion: string, The content version for the volume you are trying to retrieve. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700104 scale: integer, The requested scale for the image.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700105 source: string, String to identify the originator of this request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700106 w: integer, The requested pixel width for any images. If width is provided height must also be provided.
107 allowWebDefinitions: boolean, For the dictionary layer. Whether or not to allow web definitions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800108 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 Kim673ec5c2020-11-16 11:05:03 -0700109 h: integer, The requested pixel height for any images. If height is provided width must also be provided.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700110 x__xgafv: string, V1 error format.
111 Allowed values
112 1 - v1 error format
113 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400114
115Returns:
116 An object of the form:
117
118 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800119 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format).
120 &quot;id&quot;: &quot;A String&quot;, # Unique id for this annotation data.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700121 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800122 &quot;kind&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700123 &quot;common&quot;: {
124 &quot;title&quot;: &quot;A String&quot;, # The display title and localized canonical name to use when searching for this entity on Google search.
125 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700126 &quot;dict&quot;: {
127 &quot;words&quot;: [
128 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129 &quot;senses&quot;: [
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800131 &quot;partOfSpeech&quot;: &quot;A String&quot;,
132 &quot;definitions&quot;: [
133 {
134 &quot;examples&quot;: [
135 {
136 &quot;source&quot;: {
137 &quot;url&quot;: &quot;A String&quot;,
138 &quot;attribution&quot;: &quot;A String&quot;,
139 },
140 &quot;text&quot;: &quot;A String&quot;,
141 },
142 ],
143 &quot;definition&quot;: &quot;A String&quot;,
144 },
145 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 &quot;synonyms&quot;: [
147 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800148 &quot;text&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700149 &quot;source&quot;: {
150 &quot;url&quot;: &quot;A String&quot;,
151 &quot;attribution&quot;: &quot;A String&quot;,
152 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700153 },
154 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700155 &quot;conjugations&quot;: [
156 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700157 &quot;value&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800158 &quot;type&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700159 },
160 ],
161 &quot;pronunciationUrl&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700162 &quot;pronunciation&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800163 &quot;syllabification&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700164 &quot;source&quot;: {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700165 &quot;attribution&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800166 &quot;url&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700167 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800168 },
169 ],
170 &quot;source&quot;: { # The words with different meanings but not related words, e.g. &quot;go&quot; (game) and &quot;go&quot; (verb).
171 &quot;url&quot;: &quot;A String&quot;,
172 &quot;attribution&quot;: &quot;A String&quot;,
173 },
174 &quot;derivatives&quot;: [
175 {
176 &quot;source&quot;: {
177 &quot;attribution&quot;: &quot;A String&quot;,
178 &quot;url&quot;: &quot;A String&quot;,
179 },
180 &quot;text&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700181 },
182 ],
183 &quot;examples&quot;: [
184 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 &quot;text&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800186 &quot;source&quot;: {
187 &quot;attribution&quot;: &quot;A String&quot;,
188 &quot;url&quot;: &quot;A String&quot;,
189 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700190 },
191 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700192 },
193 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800194 &quot;source&quot;: { # The source, url and attribution for this dictionary data.
195 &quot;attribution&quot;: &quot;A String&quot;,
196 &quot;url&quot;: &quot;A String&quot;,
197 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 },
199 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700200 &quot;encodedData&quot;: &quot;A String&quot;, # Base64 encoded data for this annotation data.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700201 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this data is for.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700202 &quot;selfLink&quot;: &quot;A String&quot;, # URL for this resource. *
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 &quot;volumeId&quot;: &quot;A String&quot;, # The volume id for this data. *
204 &quot;layerId&quot;: &quot;A String&quot;, # The Layer id for this data. *
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800205 &quot;kind&quot;: &quot;A String&quot;, # Resource Type
John Asmuth614db982014-04-24 15:46:26 -0400206 }</pre>
207</div>
208
209<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800210 <code class="details" id="list">list(volumeId, layerId, contentVersion, w=None, pageToken=None, annotationDataId=None, source=None, maxResults=None, updatedMin=None, scale=None, h=None, updatedMax=None, locale=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400211 <pre>Gets the annotation data for a volume and layer.
212
213Args:
214 volumeId: string, The volume to retrieve annotation data for. (required)
215 layerId: string, The ID for the layer to get the annotation data. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700216 contentVersion: string, The content version for the requested volume. (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800217 w: integer, The requested pixel width for any images. If width is provided height must also be provided.
218 pageToken: string, The value of the nextToken from the previous page.
219 annotationDataId: string, The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set. (repeated)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 source: string, String to identify the originator of this request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700221 maxResults: integer, Maximum number of results to return
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700222 updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800223 scale: integer, The requested scale for the image.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700224 h: integer, The requested pixel height for any images. If height is provided width must also be provided.
225 updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800226 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 -0700227 x__xgafv: string, V1 error format.
228 Allowed values
229 1 - v1 error format
230 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400231
232Returns:
233 An object of the form:
234
235 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700236 &quot;kind&quot;: &quot;A String&quot;, # Resource type
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700237 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;items&quot;: [ # A list of Annotation Data.
John Asmuth614db982014-04-24 15:46:26 -0400239 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800240 &quot;encodedData&quot;: &quot;A String&quot;, # Base64 encoded data for this annotation data.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700241 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700242 &quot;common&quot;: {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 &quot;previewImageUrl&quot;: &quot;A String&quot;, # The URL for the preview image information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700244 &quot;title&quot;: &quot;A String&quot;, # The display title and localized canonical name to use when searching for this entity on Google search.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800245 &quot;snippet&quot;: &quot;A String&quot;, # The description for this location.
246 &quot;lang&quot;: &quot;A String&quot;, # The language of the information url and description.
247 &quot;snippetUrl&quot;: &quot;A String&quot;, # The URL for information for this location. Ex: wikipedia link.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700248 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700249 &quot;geo&quot;: {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700250 &quot;countryCode&quot;: &quot;A String&quot;, # The country code of the location.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700251 &quot;longitude&quot;: 3.14, # The longitude of the location.
252 &quot;boundary&quot;: [ # The boundary of the location as a set of loops containing pairs of latitude, longitude coordinates.
253 &quot;A String&quot;,
254 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800255 &quot;latitude&quot;: 3.14, # The latitude of the location.
256 &quot;cachePolicy&quot;: &quot;A String&quot;, # The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER
257 &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
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700258 &quot;viewport&quot;: { # The viewport for showing this location. This is a latitude, longitude rectangle.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800259 &quot;hi&quot;: {
260 &quot;latitude&quot;: 3.14,
261 &quot;longitude&quot;: 3.14,
262 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700263 &quot;lo&quot;: {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 &quot;latitude&quot;: 3.14,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 &quot;longitude&quot;: 3.14,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700266 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700267 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800268 &quot;mapType&quot;: &quot;A String&quot;, # The type of map that should be used for this location. EX: HYBRID, ROADMAP, SATELLITE, TERRAIN
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700269 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700270 &quot;kind&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700271 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800272 &quot;volumeId&quot;: &quot;A String&quot;, # The volume id for this data. *
273 &quot;selfLink&quot;: &quot;A String&quot;, # URL for this resource. *
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700274 &quot;layerId&quot;: &quot;A String&quot;, # The Layer id for this data. *
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800275 &quot;id&quot;: &quot;A String&quot;, # Unique id for this annotation data.
276 &quot;updated&quot;: &quot;A String&quot;, # Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700277 &quot;annotationType&quot;: &quot;A String&quot;, # The type of annotation this data is for.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800278 &quot;kind&quot;: &quot;A String&quot;, # Resource Type
John Asmuth614db982014-04-24 15:46:26 -0400279 },
280 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800281 &quot;totalItems&quot;: 42, # The total number of volume annotations found.
John Asmuth614db982014-04-24 15:46:26 -0400282 }</pre>
283</div>
284
285<div class="method">
286 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
287 <pre>Retrieves the next page of results.
288
289Args:
290 previous_request: The request for the previous page. (required)
291 previous_response: The response from the request for the previous page. (required)
292
293Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400295 page. Returns None if there are no more items in the collection.
296 </pre>
297</div>
298
299</body></html>