Skip to content

Commit

Permalink
Merge pull request #312 from ffauvel/fix-pages-updateautosavebuffer
Browse files Browse the repository at this point in the history
Add params to updateAutoSaveBuffer
  • Loading branch information
ksvirkou-hubspot authored Aug 27, 2020
2 parents 58baaed + ad74d2a commit dc9a83e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Resources/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,18 @@ public function getById($page_id)
/**
* Updates the auto-save buffer.
*
* @param in $page_id The page ID
* @param int $page_id The page ID
* @param array $params the auto-save buffer fields to update
*
* @return \SevenShores\Hubspot\Http\Response
*/
public function updateAutoSaveBuffer($page_id)
public function updateAutoSaveBuffer($page_id, $params)
{
$endpoint = "https://api.hubapi.com/content/api/v2/pages/{$page_id}/buffer";

$options['json'] = $params;

return $this->client->request('put', $endpoint);
return $this->client->request('put', $endpoint, $options);
}

/**
Expand Down

0 comments on commit dc9a83e

Please sign in to comment.