happyr-match / api-client
Happyr match API客户端
0.7.0
2022-04-01 16:26 UTC
Requires
- php: >=7.4
- php-http/client-common: ^2.0
- php-http/discovery: ^1.7
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- webmozart/assert: ^1.4
Requires (Dev)
- nyholm/nsa: ^1.0
- nyholm/psr7: ^1.1
- php-http/curl-client: ^2.0
- php-http/message: ^1.0
- php-http/message-factory: ^1.0
- phpunit/phpunit: ^9.5
README
为https://api.happyrmatch.com提供的API客户端。
安装
通过Composer
$ composer require happyr-match/api-client
用法
$apiClient = ApiClient::create($endpoint, $clientId, $clientSecret); $accessToken = $apiClient->createNewAccessToken($code, $redirectUri); $apiClient->authenticate($accessToken); $findTypes = $apiClient->find()->getTypes();
Hydrator
最终用户选择使用哪个Hydrator。默认的应该返回域对象。
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。