SevenShores\Hubspot\Resources\Contacts::createOrUpdate PHP 메소드

createOrUpdate() 공개 메소드

public createOrUpdate ( string $email, array $properties = [] ) : Response
$email string The contact's email address.
$properties array The contact properties.
리턴 SevenShores\Hubspot\Http\Response
    function createOrUpdate($email, $properties = [])
    {
        $endpoint = "https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/{$email}";
        $options['json'] = ['properties' => $properties];
        return $this->client->request('post', $endpoint, $options);
    }