Skip to content

nkf-v/example-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example API Клиент

Клиент для взаимодействия с http://example.com/

Установка

composer require nkf/example-api-client

Comment

Пример использования клиента для работы с комментариями

use GuzzleHttp\Client;
use GuzzleHttp\Psr7\HttpFactory;
use ExampleApi\Config;
use ExampleApi\Clients\CommentClient;

$config = new Config('http://example.com/'); // Можно изменить если используется проксирующий домен

$client = new CommentClient(
  new Client(),
  $config,
  new HttpFactory(),
);

$comments = $client->getAll(); // Получаем все комментарии

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages