thundersquared / envato-api
Envato Marketplace API
1.0.0
2018-12-07 13:15 UTC
Requires
- php: >=5.3.0
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-09-09 02:59:23 UTC
README
envato-api
Envato Marketplace API
本包有哪些不同之处?
当然有很多类似的库,但这个应该是其中最简单、最完整的一个——至少这是我们希望做到的。
技术栈
该API是用PHP编写的,依赖于Guzzle来消费Envato Marketplace API,这就是全部。深受Bailey Herbert的Node版本的启发。
如何使用
- 要求包
composer require thundersquared/envato-api
- 加载composer包
require_once __DIR__ . '/vendor/autoload.php';
- 实例化类
$client = new \sqrd\Envato\API('your-personal-token-here', 'optional-user-agent-here');
或使用更优雅的风格use \sqrd\Envato\API as Client; $client = new Client('your-personal-token-here', 'optional-user-agent-here');
- 使用这些调用
在每个方法的签名和详情请访问https://build.envato.com/api/。所有参数都是相同的,应作为方法的最后一个参数以键值数组的形式传递。
许可证
本存储库中的代码和使用的模块是开源软件,许可协议为MIT许可证。