dev-master
9999999-dev https://github.com/kfreiman/restfulClient for RESTful APIs, based on Guzzle's Client
MIT
The Requires
api restful client guzzle extensible
Wallogit.com
2017 © Pedro Peláez
Client for RESTful APIs, based on Guzzle's Client
It is HTTP-client with main focus to the standart RESTful API., (*1)
<?php
require 'vendor/autoload.php';
$client = new \kfreiman\restful\RestfulClient(
[
'base_uri' => 'https://api.example.com/3.0/',
'headers' => [
'Authorization' => 'Bearer my_token',
]
]
);
$responce = $client->get('lists/{list_id}/user/{user_id}', [
'list_id' => 123,
'user_id' => 1,
]);
$result = $responce->getBody()->getContents();
var_dump($result); // user object
Client for RESTful APIs, based on Guzzle's Client
MIT
api restful client guzzle extensible