/// <summary> /// /// Documentation https://developers.google.com/books/v1/reference/cloudloading/addBook /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Books service.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>BooksCloudloadingResourceResponse</returns> public static BooksCloudloadingResource AddBook(BooksService service, CloudloadingAddBookOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } // Building the initial request. var request = service.Cloudloading.AddBook(); // Applying optional parameters to the request. request = (CloudloadingResource.AddBookRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Cloudloading.AddBook failed.", ex); } }
/// <summary> /// Request downloaded content access for specified volumes on the My eBooks shelf. /// Documentation https://developers.google.com/books/v1/reference/myconfig/syncVolumeLicenses /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Books service.</param> /// <param name="source">String to identify the originator of this request.</param> /// <param name="nonce">The client nonce value.</param> /// <param name="cpksver">The device/version ID from which to release the restriction.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>VolumesResponse</returns> public static Volumes SyncVolumeLicenses(BooksService service, string source, string nonce, string cpksver, MyconfigSyncVolumeLicensesOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (source == null) { throw new ArgumentNullException(source); } if (nonce == null) { throw new ArgumentNullException(nonce); } if (cpksver == null) { throw new ArgumentNullException(cpksver); } // Building the initial request. var request = service.Myconfig.SyncVolumeLicenses(source, nonce, cpksver); // Applying optional parameters to the request. request = (MyconfigResource.SyncVolumeLicensesRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Myconfig.SyncVolumeLicenses failed.", ex); } }