Here is a php example of how you can get a list of your uploaded ebooks, it returns a json array of all the uploaded ebooks

 <?php
        $url="http://www.editionguard.com/api/ebook_list";
        $secret = "WBpayMp+Yy4NJ16NBYKMp+sdgoI="; // Place your unique distributor shared secret,you can get this from the editionguard.com account
        $nonce = rand(1000000, 999999999); // Random nonce value
        $email = "your@email.com"; //the editionguard.com account email address
        $hash = hash_hmac("sha1", $nonce.$email, base64_decode($secret)); // Generates your dynamic digital signature
        $fields=array(
                'email' => urlencode($email),
                'nonce' => urlencode($nonce),
                'hash' => urlencode($hash)
        );
        foreach($fields as $key=>$value)
        {
                $fields_string .= $key.'='.$value.'&';
        }
        rtrim($fields_string, '&');
        $ch=curl_init();
        curl_setopt($ch,CURLOPT_URL,$url);
        curl_setopt($ch,CURLOPT_POST,count($fields));;
        curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
        curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
        $html=curl_exec($ch);
        curl_close($ch);
        echo $html;
  ?>

Did this answer your question?