Search
This commit is contained in:
@@ -209,9 +209,33 @@ class CopyManga
|
||||
$parameters['limit'] = $limit;
|
||||
$parameters['offset'] = $offset;
|
||||
$parameters['top'] = $top;
|
||||
//OPTIONS
|
||||
// https://api.mangacopy.com/api/v3/comics?format=json&platform=1&q=x&limit=30&offset=0&top=all"
|
||||
// https://api.mangacopy.com/api/v3/search/comic?platform=1&q=x&limit=20&offset=0&q_type=&_update=true
|
||||
|
||||
return $this->execute($this->buildUrl("comics", $parameters));
|
||||
}
|
||||
|
||||
/**
|
||||
* Search comic by name
|
||||
*
|
||||
* @param string $item
|
||||
* @param int $limit
|
||||
* @param int $offset
|
||||
* @return mixed|string
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function search(string $item = '', int $limit = 28, int $offset = 0)
|
||||
{
|
||||
$parameters['q'] = $item;
|
||||
$parameters['q_type'] = "";
|
||||
$parameters['_update'] = true;
|
||||
$parameters['limit'] = $limit;
|
||||
$parameters['offset'] = $offset;
|
||||
|
||||
return $this->execute($this->buildUrl("search/comic", $parameters));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get comic info
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user