src/Resources/BlogPosts.php 1 location
|
@@ 235-242 (lines=8) @@
|
| 232 |
|
* @param int $version_id The version ID |
| 233 |
|
* @return \SevenShores\Hubspot\Http\Response |
| 234 |
|
*/ |
| 235 |
|
function restoreVersion($post_id, $version_id) |
| 236 |
|
{ |
| 237 |
|
$endpoint = "https://api.hubapi.com/content/api/v2/blog-posts/{$post_id}/versions/restore"; |
| 238 |
|
|
| 239 |
|
$options['json'] = compact('version_id'); |
| 240 |
|
|
| 241 |
|
return $this->client->request('post', $endpoint, $options); |
| 242 |
|
} |
| 243 |
|
} |
| 244 |
|
|
src/Resources/Pages.php 1 location
|
@@ 215-222 (lines=8) @@
|
| 212 |
|
* @param int $version_id The version ID |
| 213 |
|
* @return \SevenShores\Hubspot\Http\Response |
| 214 |
|
*/ |
| 215 |
|
function restoreVersion($page_id, $version_id) |
| 216 |
|
{ |
| 217 |
|
$endpoint = "https://api.hubapi.com/content/api/v2/pages/{$page_id}/versions/restore"; |
| 218 |
|
|
| 219 |
|
$options['json'] = compact('version_id'); |
| 220 |
|
|
| 221 |
|
return $this->client->request('post', $endpoint, $options); |
| 222 |
|
} |
| 223 |
|
} |
| 224 |
|
|