Skip to content

robertodormepoco/IssuuApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issuu Api library for PHP

Just a php library for the publishing service Issuu

Partially coded and partially working, it needs a massive clean up, refactoring and tests as well (REALLY).

Upload Example

the example uses the composer autoloader

include_once __DIR__ . '/../vendor/autoload.php';

$apiKey = "your api key";
$secret = "your secret";

$doc = new \Issuu\Models\Document();

$uploader = new \Issuu\Document\Upload($apiKey, $secret);

$doc->setTitle('Test doc');
$doc->setDescription('Lorem ipsum');
$doc->setAccess(\Issuu\Enums\AbstractDocumentAccess::PRIVATE_ACCESS);

$doc->setFilePath('absolute path to your test file');

$uploader->setDocument($doc);

try{
    $uploader->exec();
}catch (\Issuu\Exceptions\AbstractException $e) {
    print_r($e->getMessage());
}

About

Issuu API for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages