Probably relatively easy to implement:
Index: inc/class.admin.php
===================================================================
--- inc/class.admin.php (revision 491696)
+++ inc/class.admin.php (working copy)
@@ -256,12 +256,15 @@
// Check if the attachment exists and is a PDF file
if ( !isset( $post_data->post_mime_type ) || $post_data->post_mime_type != "application/pdf" || !isset( $post_data->guid ) || empty ( $post_data->guid ) )
return false;
-
+
+ // Access
+ $ips_options['issuu_access'] = 'private';
+
// Prepare the MD5 signature for the Issuu Webservice
- $md5_signature = md5( $ips_options['issuu_secret_key'] . "actionissuu.document.url_uploadapiKey" . $ips_options['issuu_api_key'] . "formatjsonslurpUrl" . $post_data->guid . "title" . sanitize_title( $post_data->post_title ) );
+ $md5_signature = md5( $ips_options['issuu_secret_key'] . "actionissuu.document.url_uploadapiKey" . $ips_options['issuu_api_key'] . "access" . $ips_options['issuu_access'] . "formatjsonslurpUrl" . $post_data->guid . "title" . sanitize_title( $post_data->post_title ) );
// Call the Webservice
- $url_to_call = "https://api.issuu.com/1_0?action=issuu.document.url_upload&apiKey=" . $ips_options['issuu_api_key'] . "&slurpUrl=" . $post_data->guid . "&format=json&title=" . sanitize_title( $post_data->post_title ) . "&signature=" . $md5_signature;
+ $url_to_call = "https://api.issuu.com/1_0?action=issuu.document.url_upload&apiKey=" . $ips_options['issuu_api_key'] . "access=" . $ips_options['issuu_access'] . "&slurpUrl=" . $post_data->guid . "&format=json&title=" . sanitize_title( $post_data->post_title ) . "&signature=" . $md5_signature;
// Cath the response
$response = wp_remote_get( $url_to_call, array( 'timeout' => 25 ) );