This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/lepiaf/RestClient
tests/RestClient
.gitignore
.travis.yml
Jenkinsfile
LICENSE
README.md
composer.json
phpunit.xml

README.md

restclient

Client to consume REST API ressource.

Build Status

How To Use

{
    "require":{
        "lepiaf/restclient": "dev-master"
    }
}
$client = new RestClient("http://api.target.com");
$client->addHeader("X-CUSTOM", "Some value");
$data = $client->request('get', "/shows/list", [], ["somequery" => "somestring"], "json");
$client = new RestClient("http://api.target.com");
$client->addHeader("X-CUSTOM", "Some value");
$data = $client->request('post', "/shows/list", ["somekey" => "somepostdata"], [], "xml");