PHP code example of sn01615 / comicool_sdk

1. Go to this page and download the library: Download sn01615/comicool_sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sn01615 / comicool_sdk example snippets


use Comicool\ComicoolClient;

$client = new ComicoolClient();
$client->setClientId('aaa');
$client->setSecret('xxx');

# 获取漫画列表
$last = null;
$comics = $client->getComics($last);

# 获取漫画详情
$comicInfo = $client->getComic($comic->id);

# 获取漫画章节列表
$comicChapters = $client->getComicChapters($comic->id, $comic_last);

# 获取漫画章节内容
$chapterInfo = $client->getComicChapter($comic->id, $chapter->id);