John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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.myconfig.html">myconfig</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 78 | <code><a href="#getUserSettings">getUserSettings()</a></code></p> |
| 79 | <p class="firstline">Gets the current settings for the user.</p> |
| 80 | <p class="toc_element"> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 81 | <code><a href="#releaseDownloadAccess">releaseDownloadAccess(volumeIds, cpksver, source=None, locale=None)</a></code></p> |
| 82 | <p class="firstline">Release downloaded content access restriction.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#requestAccess">requestAccess(source, volumeId, nonce, cpksver, licenseTypes=None, locale=None)</a></code></p> |
| 85 | <p class="firstline">Request concurrent and download access restrictions.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#syncVolumeLicenses">syncVolumeLicenses(source, nonce, cpksver, features=None, locale=None, showPreorders=None, volumeIds=None)</a></code></p> |
| 88 | <p class="firstline">Request downloaded content access for specified volumes on the My eBooks shelf.</p> |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 89 | <p class="toc_element"> |
| 90 | <code><a href="#updateUserSettings">updateUserSettings(body)</a></code></p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 91 | <p class="firstline">Sets the settings for the user. If a sub-object is specified, it will overwrite the existing sub-object stored in the server. Unspecified sub-objects will retain the existing value.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 94 | <code class="details" id="getUserSettings">getUserSettings()</code> |
| 95 | <pre>Gets the current settings for the user. |
| 96 | |
| 97 | Args: |
| 98 | |
| 99 | Returns: |
| 100 | An object of the form: |
| 101 | |
| 102 | { |
| 103 | "kind": "books#usersettings", # Resource type. |
| 104 | "notesExport": { # User settings in sub-objects, each for different purposes. |
| 105 | "isEnabled": True or False, |
| 106 | "folderName": "A String", |
| 107 | }, |
| 108 | }</pre> |
| 109 | </div> |
| 110 | |
| 111 | <div class="method"> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 112 | <code class="details" id="releaseDownloadAccess">releaseDownloadAccess(volumeIds, cpksver, source=None, locale=None)</code> |
| 113 | <pre>Release downloaded content access restriction. |
| 114 | |
| 115 | Args: |
| 116 | volumeIds: string, The volume(s) to release restrictions for. (required) (repeated) |
| 117 | cpksver: string, The device/version ID from which to release the restriction. (required) |
| 118 | source: string, String to identify the originator of this request. |
| 119 | locale: string, ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. |
| 120 | |
| 121 | Returns: |
| 122 | An object of the form: |
| 123 | |
| 124 | { |
| 125 | "downloadAccessList": [ # A list of download access responses. |
| 126 | { |
| 127 | "nonce": "A String", # Client nonce for verification. Download access and client-validation only. |
| 128 | "kind": "books#downloadAccessRestriction", # Resource type. |
| 129 | "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request. |
| 130 | "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume. |
| 131 | "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed). |
| 132 | "signature": "A String", # Response signature. |
| 133 | "volumeId": "A String", # Identifies the volume for which this entry applies. |
| 134 | "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume). |
| 135 | "source": "A String", # Client app identifier for verification. Download access and client-validation only. |
| 136 | "restricted": True or False, # Whether this volume has any download access restrictions. |
| 137 | "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS |
| 138 | "message": "A String", # Error/warning message. |
| 139 | }, |
| 140 | ], |
| 141 | "kind": "books#downloadAccesses", # Resource type. |
| 142 | }</pre> |
| 143 | </div> |
| 144 | |
| 145 | <div class="method"> |
| 146 | <code class="details" id="requestAccess">requestAccess(source, volumeId, nonce, cpksver, licenseTypes=None, locale=None)</code> |
| 147 | <pre>Request concurrent and download access restrictions. |
| 148 | |
| 149 | Args: |
| 150 | source: string, String to identify the originator of this request. (required) |
| 151 | volumeId: string, The volume to request concurrent/download restrictions for. (required) |
| 152 | nonce: string, The client nonce value. (required) |
| 153 | cpksver: string, The device/version ID from which to request the restrictions. (required) |
| 154 | licenseTypes: string, The type of access license to request. If not specified, the default is BOTH. |
| 155 | Allowed values |
| 156 | BOTH - Both concurrent and download licenses. |
| 157 | CONCURRENT - Concurrent access license. |
| 158 | DOWNLOAD - Offline download access license. |
| 159 | locale: string, ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. |
| 160 | |
| 161 | Returns: |
| 162 | An object of the form: |
| 163 | |
| 164 | { |
| 165 | "downloadAccess": { # A download access response. |
| 166 | "nonce": "A String", # Client nonce for verification. Download access and client-validation only. |
| 167 | "kind": "books#downloadAccessRestriction", # Resource type. |
| 168 | "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request. |
| 169 | "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume. |
| 170 | "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed). |
| 171 | "signature": "A String", # Response signature. |
| 172 | "volumeId": "A String", # Identifies the volume for which this entry applies. |
| 173 | "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume). |
| 174 | "source": "A String", # Client app identifier for verification. Download access and client-validation only. |
| 175 | "restricted": True or False, # Whether this volume has any download access restrictions. |
| 176 | "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS |
| 177 | "message": "A String", # Error/warning message. |
| 178 | }, |
| 179 | "kind": "books#requestAccess", # Resource type. |
| 180 | "concurrentAccess": { # A concurrent access response. |
| 181 | "nonce": "A String", # Client nonce for verification. Download access and client-validation only. |
| 182 | "kind": "books#concurrentAccessRestriction", # Resource type. |
| 183 | "restricted": True or False, # Whether this volume has any concurrent access restrictions. |
| 184 | "volumeId": "A String", # Identifies the volume for which this entry applies. |
| 185 | "maxConcurrentDevices": 42, # The maximum number of concurrent access licenses for this volume. |
| 186 | "deviceAllowed": True or False, # Whether access is granted for this (user, device, volume). |
| 187 | "source": "A String", # Client app identifier for verification. Download access and client-validation only. |
| 188 | "timeWindowSeconds": 42, # Time in seconds for license auto-expiration. |
| 189 | "signature": "A String", # Response signature. |
| 190 | "reasonCode": "A String", # Error/warning reason code. |
| 191 | "message": "A String", # Error/warning message. |
| 192 | }, |
| 193 | }</pre> |
| 194 | </div> |
| 195 | |
| 196 | <div class="method"> |
| 197 | <code class="details" id="syncVolumeLicenses">syncVolumeLicenses(source, nonce, cpksver, features=None, locale=None, showPreorders=None, volumeIds=None)</code> |
| 198 | <pre>Request downloaded content access for specified volumes on the My eBooks shelf. |
| 199 | |
| 200 | Args: |
| 201 | source: string, String to identify the originator of this request. (required) |
| 202 | nonce: string, The client nonce value. (required) |
| 203 | cpksver: string, The device/version ID from which to release the restriction. (required) |
| 204 | features: string, List of features supported by the client, i.e., 'RENTALS' (repeated) |
| 205 | Allowed values |
| 206 | RENTALS - Client supports rentals. |
| 207 | locale: string, ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. |
| 208 | showPreorders: boolean, Set to true to show pre-ordered books. Defaults to false. |
| 209 | volumeIds: string, The volume(s) to request download restrictions for. (repeated) |
| 210 | |
| 211 | Returns: |
| 212 | An object of the form: |
| 213 | |
| 214 | { |
| 215 | "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated. |
| 216 | "items": [ # A list of volumes. |
| 217 | { |
| 218 | "kind": "books#volume", # Resource type for a volume. (In LITE projection.) |
| 219 | "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.). |
| 220 | "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes. |
| 221 | "publicDomain": True or False, # Whether or not this book is public domain in the country listed above. |
| 222 | "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API. |
| 223 | "downloadAccess": { # Information about a volume's download license access restrictions. |
| 224 | "nonce": "A String", # Client nonce for verification. Download access and client-validation only. |
| 225 | "kind": "books#downloadAccessRestriction", # Resource type. |
| 226 | "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request. |
| 227 | "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume. |
| 228 | "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed). |
| 229 | "signature": "A String", # Response signature. |
| 230 | "volumeId": "A String", # Identifies the volume for which this entry applies. |
| 231 | "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume). |
| 232 | "source": "A String", # Client app identifier for verification. Download access and client-validation only. |
| 233 | "restricted": True or False, # Whether this volume has any download access restrictions. |
| 234 | "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS |
| 235 | "message": "A String", # Error/warning message. |
| 236 | }, |
| 237 | "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.) |
| 238 | "quoteSharingAllowed": True or False, # Whether quote sharing is allowed for this volume. |
| 239 | "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page. |
| 240 | "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED. |
| 241 | "driveImportedContentLink": "A String", # URL to the Google Drive viewer if this volume is uploaded by the user by selecting the file from Google Drive. |
| 242 | "pdf": { # Information about pdf content. (In LITE projection.) |
| 243 | "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.) |
| 244 | "downloadLink": "A String", # URL to download pdf. (In LITE projection.) |
| 245 | "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.) |
| 246 | }, |
| 247 | "explicitOfflineLicenseManagement": True or False, # Whether this volume requires that the client explicitly request offline download license rather than have it done automatically when loading the content, if the client supports it. |
| 248 | "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES. |
| 249 | "epub": { # Information about epub content. (In LITE projection.) |
| 250 | "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.) |
| 251 | "downloadLink": "A String", # URL to download epub. (In LITE projection.) |
| 252 | "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.) |
| 253 | }, |
| 254 | "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.) |
| 255 | }, |
| 256 | "searchInfo": { # Search result information related to this volume. |
| 257 | "textSnippet": "A String", # A text snippet containing the search query. |
| 258 | }, |
| 259 | "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries). |
| 260 | "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.) |
| 261 | "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.) |
| 262 | "amount": 3.14, # Amount in the currency listed below. (In LITE projection.) |
| 263 | "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.) |
| 264 | }, |
| 265 | "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf). |
| 266 | "offers": [ # Offers available for this volume (sales and rentals). |
| 267 | { |
| 268 | "rentalDuration": { # The rental duration (for rental offers only). |
| 269 | "count": 3.14, |
| 270 | "unit": "A String", |
| 271 | }, |
| 272 | "retailPrice": { # Offer retail (=discounted) price in Micros |
| 273 | "currencyCode": "A String", |
| 274 | "amountInMicros": 3.14, |
| 275 | }, |
| 276 | "listPrice": { # Offer list (=undiscounted) price in Micros. |
| 277 | "currencyCode": "A String", |
| 278 | "amountInMicros": 3.14, |
| 279 | }, |
| 280 | "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3) |
| 281 | }, |
| 282 | ], |
| 283 | "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER. |
| 284 | "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection) |
| 285 | "onSaleDate": "A String", # The date on which this book is available for sale. |
| 286 | "listPrice": { # Suggested retail price. (In LITE projection.) |
| 287 | "amount": 3.14, # Amount in the currency listed below. (In LITE projection.) |
| 288 | "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.) |
| 289 | }, |
| 290 | }, |
| 291 | "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection) |
| 292 | "selfLink": "A String", # URL to this resource. (In LITE projection.) |
| 293 | "volumeInfo": { # General volume information. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 294 | "subtitle": "A String", # Volume subtitle. (In LITE projection.) |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 295 | "pageCount": 42, # Total number of pages as per publisher metadata. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 296 | "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight. |
| 297 | "dimensions": { # Physical dimensions of this volume. |
| 298 | "width": "A String", # Width of this volume (in cm). |
| 299 | "thickness": "A String", # Thickness of this volume (in cm). |
| 300 | "height": "A String", # Height or length of this volume (in cm). |
| 301 | }, |
| 302 | "previewLink": "A String", # URL to preview this volume on the Google Books site. |
| 303 | "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection) |
| 304 | "industryIdentifiers": [ # Industry standard identifiers for this volume. |
| 305 | { |
| 306 | "identifier": "A String", # Industry specific volume identifier. |
| 307 | "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. |
| 308 | }, |
| 309 | ], |
| 310 | "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.) |
| 311 | "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.) |
| 312 | "publishedDate": "A String", # Date of publication. (In LITE projection.) |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 313 | "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.) |
| 314 | "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection) |
| 315 | "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection) |
| 316 | "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection) |
| 317 | "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection) |
| 318 | "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection) |
| 319 | "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection) |
| 320 | }, |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 321 | "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection) |
| 322 | "A String", |
| 323 | ], |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 324 | "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc. |
| 325 | "A String", |
| 326 | ], |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 327 | "publisher": "A String", # Publisher of this volume. (In LITE projection.) |
| 328 | "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc. |
| 329 | "readingModes": "", # The reading modes available for this volume. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 330 | "allowAnonLogging": True or False, # Whether anonymous logging should be allowed. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 331 | "title": "A String", # Volume title. (In LITE projection.) |
| 332 | "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 333 | "samplePageCount": 42, # Total number of sample pages as per publisher metadata. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 334 | "maturityRating": "A String", |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 335 | "printedPageCount": 42, # Total number of printed pages in generated pdf representation. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 336 | "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0) |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 337 | "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection) |
| 338 | "ratingsCount": 42, # The number of review ratings for this volume. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 339 | }, |
| 340 | "recommendedInfo": { # Recommendation related information for this volume. |
| 341 | "explanation": "A String", # A text explaining why this volume is recommended. |
| 342 | }, |
| 343 | "id": "A String", # Unique identifier for a volume. (In LITE projection.) |
| 344 | "layerInfo": { # What layers exist in this volume and high level information about them. |
| 345 | "layers": [ # A layer should appear here if and only if the layer exists for this book. |
| 346 | { |
| 347 | "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately. |
| 348 | "layerId": "A String", # The layer id of this layer (e.g. "geo"). |
| 349 | }, |
| 350 | ], |
| 351 | }, |
| 352 | "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book) |
| 353 | "isInMyBooks": True or False, # Whether or not this volume is currently in "my books." |
| 354 | "rentalPeriod": { # Period during this book is/was a valid rental. |
| 355 | "startUtcSec": "A String", |
| 356 | "endUtcSec": "A String", |
| 357 | }, |
| 358 | "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format). |
| 359 | "userUploadedVolumeInfo": { |
| 360 | "processingState": "A String", |
| 361 | }, |
| 362 | "rentalState": "A String", # Whether this book is an active or an expired rental. |
| 363 | "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.) |
| 364 | "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.) |
| 365 | "kind": "books#readingPosition", # Resource type for a reading position. |
| 366 | "gbImagePosition": "A String", # Position in a volume for image-based content. |
| 367 | "epubCfiPosition": "A String", # Position in an EPUB as a CFI. |
| 368 | "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution). |
| 369 | "volumeId": "A String", # Volume id associated with this reading position. |
| 370 | "pdfPosition": "A String", # Position in a PDF file. |
| 371 | "gbTextPosition": "A String", # Position in a volume for text-based content. |
| 372 | }, |
| 373 | "review": { # This user's review of this volume, if one exists. |
| 374 | "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED. |
| 375 | "kind": "books#review", # Resource type for a review. |
| 376 | "author": { # Author of this review. |
| 377 | "displayName": "A String", # Name of this person. |
| 378 | }, |
| 379 | "title": "A String", # Title for this review. |
| 380 | "volumeId": "A String", # Volume that this review is for. |
| 381 | "content": "A String", # Review text. |
| 382 | "source": { # Information regarding the source of this review, when the review is not from a Google Books user. |
| 383 | "extraDescription": "A String", # Extra text about the source of the review. |
| 384 | "url": "A String", # URL of the source of the review. |
| 385 | "description": "A String", # Name of the source. |
| 386 | }, |
| 387 | "date": "A String", # Date of this review. |
| 388 | "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER. |
| 389 | "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web. |
| 390 | }, |
| 391 | "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.) |
| 392 | "copy": { # Copy/Paste accounting information. |
| 393 | "limitType": "A String", |
| 394 | "remainingCharacterCount": 42, |
| 395 | "updated": "A String", |
| 396 | "allowedCharacterCount": 42, |
| 397 | }, |
| 398 | "isUploaded": True or False, # Whether or not this volume was user uploaded. |
| 399 | }, |
| 400 | }, |
| 401 | ], |
| 402 | "kind": "books#volumes", # Resource type. |
| 403 | }</pre> |
| 404 | </div> |
| 405 | |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 406 | <div class="method"> |
| 407 | <code class="details" id="updateUserSettings">updateUserSettings(body)</code> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 408 | <pre>Sets the settings for the user. If a sub-object is specified, it will overwrite the existing sub-object stored in the server. Unspecified sub-objects will retain the existing value. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 409 | |
| 410 | Args: |
| 411 | body: object, The request body. (required) |
| 412 | The object takes the form of: |
| 413 | |
| 414 | { |
| 415 | "kind": "books#usersettings", # Resource type. |
| 416 | "notesExport": { # User settings in sub-objects, each for different purposes. |
| 417 | "isEnabled": True or False, |
| 418 | "folderName": "A String", |
| 419 | }, |
| 420 | } |
| 421 | |
| 422 | |
| 423 | Returns: |
| 424 | An object of the form: |
| 425 | |
| 426 | { |
| 427 | "kind": "books#usersettings", # Resource type. |
| 428 | "notesExport": { # User settings in sub-objects, each for different purposes. |
| 429 | "isEnabled": True or False, |
| 430 | "folderName": "A String", |
| 431 | }, |
| 432 | }</pre> |
| 433 | </div> |
| 434 | |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 435 | </body></html> |