dealnews / api-client
A php client for accessing the DealNews api
Installs: 7 279
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.0
Requires (Dev)
- guzzlehttp/guzzle: ~6.0
- phpunit/phpunit: 4.6.*
This package is auto-updated.
Last update: 2024-11-16 02:11:36 UTC
README
A php client for accessing the DealNews api
Basic Example
require 'vendor/autoload.php'; $client = new \DealNews\API\Client\HTTP ("YOUR_API_KEY"); // perform a simple get request to an api endpoint $response = $client->get("/features"); // echoes 200 echo $response['status']; // dumps out all response headers var_dump($response['headers']); // echoes response body echo $response['body'];