christophrumpel / marvel-superhero-api
这是一个用于处理 Marvel 开发者 API 的 PHP 包。
0.0.4
2015-05-25 19:32 UTC
Requires
- php: >=5.3.0
- guzzlehttp/guzzle: ~5.2
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2024-09-10 23:39:39 UTC
README
Marvel 超级英雄 API
这是一个用于处理 Marvel 开发者 API 的辅助包。
示例
// Get an Marvel account and your keys here https://developer.marvel.com/ $publicKey = "your_public_key"; $privateKey = "your_private_key"; $api = new MarvelUniverse\SuperheroApi($publicKey, $privateKey); // Get all characters $characters = $api->characters()->getAll(['nameStartsWith' => 'Y']); // Get 3-D Man $threedman = $api->characters()->getById(1011334); // Get comics from 3-D Man $comics = $api->characters()->getComics(1011334, ['format' => 'comic']); // Get events from 3-D Man $events = $api->characters()->getEvents(1011334); // Get series from 3-D Man $series = $api->characters()->getSeries(1011334); // Get stories from 3-D Man $stories = $api->characters()->getStories(1011334); // For more examples checkout the example.php file
覆盖范围
- 所有角色调用
- 所有漫画调用
路线图
更多即将到来
- 创建者调用
- 事件调用
- 系列调用
- 故事调用