linkshare / linkshare-api
LinkShare开发者API消费的API包装器。
v1.0.9
2018-03-07 06:51 UTC
Requires
- php: >=5.6
- linkshare/oauth2-linkshare: ~1.0
- nesbot/carbon: ~1.21
Requires (Dev)
- fabpot/php-cs-fixer: ~1.11
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.2
- psy/psysh: ~0.7
- squizlabs/php_codesniffer: ~2.5
- 1.0.x-dev
- dev-master / 1.0.x-dev
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- dev-dependabot/composer/fabpot/php-cs-fixer-approx-2.19
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/squizlabs/php_codesniffer-approx-3.6
- dev-dependabot/composer/mockery/mockery-approx-1.3
- dev-dependabot/composer/nesbot/carbon-approx-2.23
- dev-dependabot/composer/phpunit/phpunit-approx-6.2
- dev-dependabot/composer/linkshare/oauth2-linkshare-approx-2.0
This package is auto-updated.
Last update: 2024-09-05 03:11:41 UTC
README
消费LinkShare开发者API的API客户端。
这是什么?
此包提供了LinkShare开发者API的客户端。
当前实现API
- 链接定位器(部分实现)
- 产品搜索
用法
您可以在examples文件夹下找到如何使用API的示例。
一般来说,API客户端的创建方式如下
// Options contain the information required for // authenticating against the API endpoints. $options = [ // Required: The client ID as provided by the developer's portal // This will vary for each API. 'client_id' => $clientId, // Required: The client secret as provided by the developer's portal // This will vary for each API. 'client_secret' => $password, // Required: The access token as provided by the developer's portal // This will vary for each API. 'access_token' => $access_token, // Required: Your LinkShare Affiliate username 'username' => $username, // Required: Your LinkShare Affiliate password 'password' => $password, // Required: Your LinkShare Affiliate Site ID 'scope' => $scope, // Optional: The timeout (in seconds) before a request fails 'timeout' => $timeout, ]; // To create an API client, simply supply the required options as shown above $linkLocator = new LinkLocator($options); $productSearch = new ProductSearch($options);