ydin / third-party-resource
Installs: 18 859
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- guzzlehttp/guzzle: >=6.3
- illuminate/cache: ^8 || >=9.0 <9.21
This package is auto-updated.
Last update: 2024-04-26 07:13:36 UTC
README
how to use
$api = $resourceBuild->groupName()->apiName();
$response = $api->send($array);
$response = $api->getResponse($array);
$text = $api->getJson();
$text = $api->getJsonCache();
$text = $api->getJsonForever();
$array = $api->getArray();
$array = $api->getArrayCache();
$array = $api->getArrayForever();
example
use ThirdPartyResource\ResourceBuild;
$api = $resourceBuild->fsTracking()->biActionlogs();
$api->send($row);
$api = $resourceBuild->kidguard()->processor();
$api->getResponse($row);
$api = $resourceBuild->beeFree()->templates();
$api->getJsonCache($row, 86400);
how to try APIs
php artisan third-party-resource:api-acceptance-test
API URL setting
code config/third-party-resource.php
cache files
ls storage/third-party-resource/*.json
in 未來
- 將 apidoc build 到 github homepage
- ResourceBuild 用 gen code 產生, 資料來自於 ThirdParty/Api/*/*.php