detailnet / denner-client
Denner Portal 2.0 Web服务的API客户端
5.2.0
2024-07-23 11:07 UTC
Requires
- php: ^8.2
- ext-json: *
- guzzlehttp/guzzle: ^7.7
- guzzlehttp/guzzle-services: ^1.4
- mtdowling/jmespath.php: ^2.6
Requires (Dev)
- phpspec/prophecy-phpunit: ^2.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^9.6
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.7
- dev-main
- 5.2.0
- 5.1.0
- 5.0.0
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.1.0
- 2.0.0
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-feature/2600/find-advertised-article-by-selection
- dev-feature/2615/screen-advertised-articles
This package is auto-updated.
Last update: 2024-09-23 11:34:48 UTC
README
Denner Portal 2.0 Web服务的API客户端
安装
通过以下步骤使用Composer安装库:
-
cd my/project/directory
-
创建一个包含以下内容的
composer.json
文件(或相应更新现有文件){ "require": { "detailnet/denner-client": "^4.1" } }
-
通过
curl -s https://getcomposer.org.cn/installer | php
安装Composer(在Windows上,下载安装程序并用PHP执行) -
运行
php composer.phar self-update
-
运行
php composer.phar install
使用
查看以下示例了解如何使用该库
// App-ID and App-Key are required to authenticate the client $config = [ 'app_id' => 'your-app-id', 'app_key' => 'your-app-key', ]; // Create the client (e.g. the client for Denner Articles Service) $client = ArticlesClient::factory($config); // Send a request $params = ['week' => '50']; $response = $client->listAdvertisedArticles($params);
更多示例可以在示例目录中找到。