library restlyte
A simple REST client library implemented in PHP.
lamoni/restlyte
A simple REST client library implemented in PHP.
- Wednesday, January 7, 2015
- by lamoni
- Repository
- 1 Watchers
- 0 Stars
- 55 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 2 Versions
- 0 % Grown
RESTLyte
RESTLyte is a simple REST client library implemented in PHP., (*1)
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: "
);