postradar / php-sdk
postradar.ru API 客户端
1.0.1
2017-06-19 14:35 UTC
Requires
- php: >=5.6
- ext-curl: *
- rollbar/rollbar: dev-master
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-28 20:14:48 UTC
README
这个开源库允许您将postradar.ru集成到您的应用中。
入门指南
以下步骤将在您的本地机器上安装项目副本并启动,用于开发和测试。有关如何在实时系统上部署项目的说明,请参阅部署部分。
先决条件
php ( >=5.6 ), curl
安装
- 在项目目录中通过命令行运行 composer require 命令
~/your/project/directory$ composer require postradar/php-sdk dev-master
- 清除您应用程序的缓存
使用
-
在https://office.postradar.ru获取 apiKey
-
使用url http://postradar.ru 和您的 apiKey 创建 ApiClient 实例
$client = new \PostRadar\ApiClient($apiKey);
- 调用 ApiClient 对象方法
$result = $client->profile();
许可证
本项目采用GPL-3.0许可证