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

create() public method

Create a new blog post.
public create ( array $params = [] ) : Response
$params array Optional Parameters.
return SevenShores\Hubspot\Http\Response
    function create($params = [])
    {
        $endpoint = 'https://api.hubapi.com/content/api/v2/blog-posts';
        $options['json'] = $params;
        return $this->client->request('post', $endpoint, $options);
    }