PHP code example of technicalguru / rest-client
1. Go to this page and download the library: Download technicalguru/rest-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
technicalguru / rest-client example snippets
$response = $request->execute();
$httpCode = $response->getHttpCode();
$bodyObject = $response->getBody();
$rawBody = $response->getRawBody();
$headerValue = $response->getHeader('Server');
$request1 = $responses[0]->getRequest();
$request2 = $responses[1]->getRequest();