PHP 클래스 SevenShores\Hubspot\Resources\Pages

상속: extends Resource
파일 보기 프로젝트 열기: fungku/hubspot-php

공개 메소드들

메소드 설명
all ( array $params = [] ) : Response Get all pages.
clonePage ( integer $page_id ) : Response Clone the page.
create ( array $params ) : Response Create a new page.
delete ( integer $page_id ) : Response Delete a page.
getAutoSaveBufferContents ( integer $page_id ) : Response Gets the current contents of the auto-save buffer.
getById ( integer $page_id ) : Response Get a specific page.
hasBufferedChanges ( integer $page_id ) : Response Determine if the auto-save buffer differs from the live page.
publishAction ( integer $page_id, string $action ) : Response Either publishes or cancels publishing based on the POSTed JSON.
pushBufferLive ( integer $page_id ) : Response Copies the contents of the auto-save buffer into the live page.
restoreDeleted ( integer $page_id ) : Response Restores a previously deleted page.
restoreVersion ( integer $page_id, integer $version_id ) : Response Restore a previous version of the page.
update ( integer $page_id, array $params ) : Response Update a page.
updateAutoSaveBuffer ( in $page_id ) : Response Updates the auto-save buffer.
validateBuffer ( integer $page_id ) : Response Validates the auto-save buffer version of the page.
versions ( integer $page_id ) : Response List previous versions of the page.

메소드 상세

all() 공개 메소드

Get all pages.
public all ( array $params = [] ) : Response
$params array Optional parameters.
리턴 SevenShores\Hubspot\Http\Response

clonePage() 공개 메소드

Clone the page.
public clonePage ( integer $page_id ) : Response
$page_id integer The page ID
리턴 SevenShores\Hubspot\Http\Response

create() 공개 메소드

Create a new page.
public create ( array $params ) : Response
$params array Optional Parameters.
리턴 SevenShores\Hubspot\Http\Response

delete() 공개 메소드

Delete a page.
public delete ( integer $page_id ) : Response
$page_id integer
리턴 SevenShores\Hubspot\Http\Response

getAutoSaveBufferContents() 공개 메소드

Gets the current contents of the auto-save buffer.
public getAutoSaveBufferContents ( integer $page_id ) : Response
$page_id integer The page ID
리턴 SevenShores\Hubspot\Http\Response

getById() 공개 메소드

Get a specific page.
public getById ( integer $page_id ) : Response
$page_id integer
리턴 SevenShores\Hubspot\Http\Response

hasBufferedChanges() 공개 메소드

Determine if the auto-save buffer differs from the live page.
public hasBufferedChanges ( integer $page_id ) : Response
$page_id integer The page ID
리턴 SevenShores\Hubspot\Http\Response

publishAction() 공개 메소드

Allowable actions are: "push-buffer-live", "schedule-publish", "cancel-publish". "push-buffer-live": copies the current contents of the auto-save buffer into the live object. "schedule-publish": which pushes the buffer live and then sets up the content for publishing at the existing publish_date time. "cancel-publish": cancels a previous schedule-publish action.
public publishAction ( integer $page_id, string $action ) : Response
$page_id integer The page ID
$action string The publish action
리턴 SevenShores\Hubspot\Http\Response

pushBufferLive() 공개 메소드

Copies the contents of the auto-save buffer into the live page.
public pushBufferLive ( integer $page_id ) : Response
$page_id integer The page ID
리턴 SevenShores\Hubspot\Http\Response

restoreDeleted() 공개 메소드

Restores a previously deleted page.
public restoreDeleted ( integer $page_id ) : Response
$page_id integer The page ID
리턴 SevenShores\Hubspot\Http\Response

restoreVersion() 공개 메소드

Restore a previous version of the page.
public restoreVersion ( integer $page_id, integer $version_id ) : Response
$page_id integer The page ID
$version_id integer The version ID
리턴 SevenShores\Hubspot\Http\Response

update() 공개 메소드

Update a page.
public update ( integer $page_id, array $params ) : Response
$page_id integer The page id.
$params array The page fields to update.
리턴 SevenShores\Hubspot\Http\Response

updateAutoSaveBuffer() 공개 메소드

Updates the auto-save buffer.
public updateAutoSaveBuffer ( in $page_id ) : Response
$page_id in The page ID
리턴 SevenShores\Hubspot\Http\Response

validateBuffer() 공개 메소드

Validates the auto-save buffer version of the page.
public validateBuffer ( integer $page_id ) : Response
$page_id integer The page ID
리턴 SevenShores\Hubspot\Http\Response

versions() 공개 메소드

List previous versions of the page.
public versions ( integer $page_id ) : Response
$page_id integer The page ID
리턴 SevenShores\Hubspot\Http\Response