codeages/rest-api-client

There is no license information available for the latest version (v0.3.1) of this package.

A PHP REST API Client.

v0.3.1 2019-10-10 02:00 UTC

This package is auto-updated.

Last update: 2024-12-06 16:41:10 UTC


README

Install

composer require codeages/rest-api-client

Useage

use Codeages\RestApiClient\RestApiClient;
use Codeages\RestApiClient\Specification\JsonHmacSpecification;

$config = array(
    'accessKey' => 'testkey',
    'secretKey' => 'secretKey',
    'endpoint' => 'http://domain.tld/api/v1/',
);

$spec = new JsonHmacSpecification('sha1');

$client = new RestApiClient($config, $spec);

$result = $client->get('/');