$client = new \GuzzleHttp\Client(); $response = $client->request('GET', 'https://jsonplaceholder.typicode.com/posts/1'); $body = $response->getBody(); echo $body;In this example, we are using the GuzzleHttp library to make an HTTP GET request to the JSONPlaceholder API. We then retrieve the response body using the getBody() method and print it to the console. This method is commonly used in PHP libraries such as GuzzleHttp and PHP cURL.