SevenShores\Hubspot\Resources\Blogs::getVersion PHP Method

getVersion() public method

Get a previous version of the blog.
public getVersion ( string $id, string $version_id ) : Response
$id string Blog id.
$version_id string Version id.
return SevenShores\Hubspot\Http\Response
    function getVersion($id, $version_id)
    {
        $endpoint = "https://api.hubapi.com/content/api/v2/blogs/{$id}/versions/{$version_id}";
        return $this->client->request('get', $endpoint);
    }