SevenShores\Hubspot\Resources\Workflows::enrollContact PHP Method

enrollContact() public method

Enroll a contact in a workflow.
public enrollContact ( integer $workflow_id, string $email ) : Response
$workflow_id integer
$email string
return SevenShores\Hubspot\Http\Response
    function enrollContact($workflow_id, $email)
    {
        $endpoint = "https://api.hubapi.com/automation/v2/workflows/{$workflow_id}/enrollments/contacts/{$email}";
        return $this->client->request('post', $endpoint);
    }