function create($params = []) { $endpoint = 'https://api.hubapi.com/content/api/v2/blog-posts'; $options['json'] = $params; return $this->client->request('post', $endpoint, $options); }