postradar/php-sdk

postradar.ru API 客户端

1.0.1 2017-06-19 14:35 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:14:48 UTC


README

这个开源库允许您将postradar.ru集成到您的应用中。

入门指南

以下步骤将在您的本地机器上安装项目副本并启动,用于开发和测试。有关如何在实时系统上部署项目的说明,请参阅部署部分。

先决条件

php ( >=5.6 ), curl

安装

  1. 在项目目录中通过命令行运行 composer require 命令
~/your/project/directory$ composer require postradar/php-sdk dev-master

  1. 清除您应用程序的缓存

使用

  1. https://office.postradar.ru获取 apiKey

  2. 使用url http://postradar.ru 和您的 apiKey 创建 ApiClient 实例

$client = new \PostRadar\ApiClient($apiKey);

  1. 调用 ApiClient 对象方法
$result = $client->profile();

许可证

本项目采用GPL-3.0许可证