Hello,
So I almost have my Scribd API working as I wish. One little nagging
bug remains. I am uploading documents set as private using the
unofficial php class. Like this;
$file = $target_path; //a reference to the file in reference to the
current working directory.
$doc_type = $blocks[1];
$access = "private";
$rev_id = null;
$download_and_drm = "download-pdf-orig";
$data = $scribd->upload($file, $doc_type, $access, $download_and_drm,
$rev_id);
$did = $data["doc_id"];
$dkey = $data['access_key'];
Then calling the documents with a very basic javascript API embed like
this;
<div id=\'$primid\'><a href=\'
http://www.scribd.com\'></a></div>
<script type=\'text/javascript\'>
var scribd_doc = scribd.Document.getDoc( $did, \'$dkey\' );
var oniPaperReady = function(e){
// scribd_doc.api.setPage(3);
}
scribd_doc.addParam( \'jsapi_version\', 1 );
scribd_doc.addEventListener( \'iPaperReady\', oniPaperReady );
scribd_doc.write( \'$primid\' );
</script>
If I go look at the documents in Scribd homepage they are set to be
allowed to download, but when the embed flash loads the Download link
greys out. Any Suggetstions??
Dan