public function get($request, $base = 'http://loripsum.net/api/')
    {
        $uri = $base . ltrim($request, '/');

        return $this->client->get($uri, ['timeout' => 10])->getBody();
    }
public function get($request, $base = 'http://loripsum.net/api/')
    {
        $uri = $base . ltrim($request, '/');

        return $this->client->get($uri, ['timeout' => 10])->getBody();
    }
public function get ( $ request , $ base = 'http://loripsum.net/api/' ) { $ uri = $ base . ltrim ( $ request , '/' ) ; return $ this -> client -> get ( $ uri , [ 'timeout' => 10 ] ) -> getBody ( ) ; }
Fetches the content from the service.

@param string $request Parameters to add to the base uri - eg /medium/decorate/ol
@param string $base

@return string
Fetches the content from the service .