how to give permission for the user to view private doc using scribed API
<p>I am using scribd java script API to view a pdf file in my website.</p>

<p>I have  uploaded one pdf file and made the pdf document private.</p>

<p>I want it to be viewed via script in my code.</p>

<p>I cant call a private document without autentication - so it does not allow me to view.</p>

<p>So i need to give something like this  </p>

<pre><code> scribd_doc.addParam("use_ssl", true);
 scribd_doc.grantAccess('username','sessionid','password');
</code></pre>

<p>I do not understand what is session id here .</p>

<p>how should i get it.. pls explain how to given authentication as above using username and password</p>

<p>pls refer </p>
