SevenShores\Hubspot\Resources\ContactProperties::update PHP Метод

update() публичный Метод

Update a specified contact property.
См. также: http://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property
public update ( string $name, array $property ) : Response
$name string
$property array
Результат SevenShores\Hubspot\Http\Response
    function update($name, $property)
    {
        $endpoint = "https://api.hubapi.com/contacts/v2/properties/named/{$name}";
        $property['name'] = $name;
        $options['json'] = $property;
        return $this->client->request('put', $endpoint, $options);
    }