SevenShores\Hubspot\Resources\ContactProperties::createGroup PHP Method

createGroup() public method

Create a new contact property group to gather like contact-level data. Property groups allow you to more easily manage properties in a given portal and make contact records easier to parse for the user.
See also: http://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property_group
public createGroup ( array $group ) : Response
$group array Group properties
return SevenShores\Hubspot\Http\Response
    function createGroup($group)
    {
        $endpoint = "https://api.hubapi.com/contacts/v2/groups";
        $options['json'] = $group;
        return $this->client->request('post', $endpoint, $options);
    }