farento / rest-sdk
为 api.farento.com 提供的 SDK
1.0
2019-06-03 15:18 UTC
Requires
- php: >=7.2
- ext-json: *
- doctrine/collections: ^1.0
- guzzle/http: ^3.9
- symfony/http-foundation: ~3.4|~4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- pdepend/pdepend: ^2.2
- phploc/phploc: ^4.0
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^7.0
- sebastian/phpcpd: ^2.0
- sebastian/version: ^2.0
- symfony/process: ^4.0
This package is not auto-updated.
Last update: 2024-10-02 12:46:48 UTC
README
如何使用
安装包
composer require farento/rest-sdk
如果您使用 symfony 配置服务
\Farento\SDK\Service\HttpClient
\Farento\SDK\Service\Router
\Farento\SDK\Service\AuthenticationServiceInterface
\Guzzle\Http\Client
如果没有为它创建一些工具,例如 Builder
同时创建授权服务,该服务将实现 \Farento\SDK\Service\AuthenticationServiceInterface
并将其注入到 \Farento\SDK\Service\HttpClient
如何获取授权令牌
请给我发邮件到 admin@farento.com,我会为您提供。