PHP Class SevenShores\Hubspot\Resources\BlogTopics

Inheritance: extends Resource
Show file Open project: fungku/hubspot-php

Public Methods

Method Description
all ( array $params = [] ) : Response Get all the blog topcis
create ( string $name, array $params = [] ) : Response Create a new blog topic.
delete ( integer $id ) : Response Delete a blog topic.
getById ( integer $id ) : Response
merge ( array $topicIds, string $groupedTopicName ) : Response Group blog topics
search ( string $query, array $params = [] ) : Response Search a topic by the query. $query will match name and slug partially
update ( integer $id, array $params = [] ) : Response Update a blog topic.

Method Details

all() public method

Get all the blog topcis
public all ( array $params = [] ) : Response
$params array Optional parameters ['name','slug','limit','offset']
return SevenShores\Hubspot\Http\Response

create() public method

Create a new blog topic.
public create ( string $name, array $params = [] ) : Response
$name string Name of the topic
$params array Optional Parameters.
return SevenShores\Hubspot\Http\Response

delete() public method

Delete a blog topic.
public delete ( integer $id ) : Response
$id integer
return SevenShores\Hubspot\Http\Response

getById() public method

public getById ( integer $id ) : Response
$id integer
return SevenShores\Hubspot\Http\Response

merge() public method

Group blog topics
public merge ( array $topicIds, string $groupedTopicName ) : Response
$topicIds array Array of topic ids
$groupedTopicName string New name of the group
return SevenShores\Hubspot\Http\Response

update() public method

Update a blog topic.
public update ( integer $id, array $params = [] ) : Response
$id integer The blog topic id.
$params array The blog topic fields to update.
return SevenShores\Hubspot\Http\Response