lamoni / restlyte
A simple REST client library implemented in PHP.
v1.0.0
2015-01-07 11:07 UTC
Requires
- php: >= 5.4.16
This package is not auto-updated.
Last update: 2024-12-17 04:20:54 UTC
README
RESTLyte is a simple REST client library implemented in PHP.
Examples
$rest = new RESTLyte( "https://spaceexample.io", // Server "username", // Username "password", // Password false, // SSL Checking? [ // Array of custom HTTP headers to send with the API call 'Cache-Control: no-cache' ] ); $response = $rest->get( '/api/space/device-management/devices', // API call 'JSON', // Response handler (RAW | JSON | XML) 'application/vnd.net.juniper.space.device-management.devices+json;version=1' // "Accept: " );