postradar/php-sdk

postradar.ru API client

1.0.1 2017-06-19 14:35 UTC

This package is not auto-updated.

Last update: 2024-04-27 18:04:33 UTC


README

This open-source library allows you to integrate postradar.ru into your application.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

php ( >=5.6 ), curl

Installing

  1. Run composer require command in command line in project directory
~/your/project/directory$ composer require postradar/php-sdk dev-master

  1. Clear cache of your application

Using

  1. Get apiKey in https://office.postradar.ru

  2. Create instance of ApiClient with url http://postradar.ru and your api key

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

  1. Call ApiClient object methods
$result = $client->profile();

License

This project is licensed under the GPL-3.0 License