Source for file example.php
Documentation is available at example.php
require_once 'Services/SharedBook.php';
// Please register at http://www.sharedbook.com/biz/dev/mydevaccount.html
$my_book->bmsCreateInit ('Crossing the ocean',
'Chapters text comes here');
$my_book->bmsCreatePublish ();
$my_book->bmsAddComment ('JohnDoe',
$my_book->bmsAddComment ('Superman',
'Where did you buy the cam?');
$my_book->bmsAddPhoto ('photo1.jpg', 'Alex');
$my_book->bmsAddPhoto ('photo2.jpg', 'Alex');
$my_book->bmsSetFrontCoverPhoto ('photo3.jpg', 'Alex');
$my_book->bmsSetBackCoverPhoto ('photo4.jpg', 'Alex');
$my_book->bookCreateInit ();
$my_book->bookCreateSetDedication ('This book is dedicated to PHP API');
$my_book->bookCreatePublish ();
echo 'URL: '. $my_book->bookPreview ();
echo $e->getCode (). ' - '. $e->getMessage ();
Documentation generated on Mon, 11 Mar 2019 14:44:52 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|