ryodevz / afara-restapi
为简化使用提供的sasasasas公共REST API包装器。
v2.0.0
2021-08-31 17:22 UTC
Requires
- ryodevz/httpfulwrapper: ^2.0
This package is auto-updated.
Last update: 2024-09-29 06:25:42 UTC
README
通过Composer安装
建议使用Composer来安装afara-restapi。
> composer require ryodevz/afara-restapi
通过git安装
> git clone https://github.com/ryodevz/afara-restapi > cd afara-restapi > composer install
功能
更多信息请访问 public-restapi.herokuapp.com。
MyPublicIP API调用示例
<?php use Ryodevz\Api; require 'vendor/autoload.php'; $api = new Api; $ipaddress = $api->myPublicIp(); echo $ipaddress;
Animeku API调用示例
use Ryodevz\Api; require 'vendor/autoload.php'; $api = new Api; $search = $api->animeku()->search('naruto'); $episodes = $api->animeku()->episodes('naruto-shippuuden'); $video_url = $api->animeku()->video('naruto-shippuuden-episode-488-sub-indo');