SevenShores\Hubspot\Resources\BlogPosts::versions PHP Method

versions() public method

List previous versions of the blog post.
public versions ( integer $id ) : Response
$id integer The blog post ID
return SevenShores\Hubspot\Http\Response
    function versions($id)
    {
        $endpoint = "https://api.hubapi.com/content/api/v2/blog-posts/{$id}/versions";
        return $this->client->request('get', $endpoint);
    }