PHP Class SevenShores\Hubspot\Resources\Workflows

Inheritance: extends Resource
Afficher le fichier Open project: fungku/hubspot-php

Méthodes publiques

Méthode Description
all ( ) : Response Get all workflows.
create ( array $workflow ) : Response Create a new workflow.
delete ( integer $id ) : Response Delete a workflow.
enrollContact ( integer $workflow_id, string $email ) : Response Enroll a contact in a workflow.
enrollmentsForContact ( integer $contact_id ) : Response Get current enrollments for a contact.
getById ( integer $id ) : Response Get a specific workflow.
pastEventsForContact ( integer $workflow_id, integer $contact_id, array $params = [] ) : Response Get past events for contact from a workflow.
unenrollContact ( integer $workflow_id, string $email ) : Response Unenroll a contact from a workflow.
upcomingEventsForContact ( integer $workflow_id, integer $contact_id, array $params = [] ) : Response Get upcoming (scheduled) events for a contact in a workflow.

Method Details

all() public méthode

Get all workflows.
public all ( ) : Response
Résultat SevenShores\Hubspot\Http\Response

create() public méthode

Create a new workflow.
public create ( array $workflow ) : Response
$workflow array The workflow properties
Résultat SevenShores\Hubspot\Http\Response

delete() public méthode

Delete a workflow.
public delete ( integer $id ) : Response
$id integer
Résultat SevenShores\Hubspot\Http\Response

enrollContact() public méthode

Enroll a contact in a workflow.
public enrollContact ( integer $workflow_id, string $email ) : Response
$workflow_id integer
$email string
Résultat SevenShores\Hubspot\Http\Response

enrollmentsForContact() public méthode

Get current enrollments for a contact.
public enrollmentsForContact ( integer $contact_id ) : Response
$contact_id integer
Résultat SevenShores\Hubspot\Http\Response

getById() public méthode

Get a specific workflow.
public getById ( integer $id ) : Response
$id integer
Résultat SevenShores\Hubspot\Http\Response

pastEventsForContact() public méthode

Get past events for contact from a workflow.
public pastEventsForContact ( integer $workflow_id, integer $contact_id, array $params = [] ) : Response
$workflow_id integer
$contact_id integer
$params array Optional parameters.
Résultat SevenShores\Hubspot\Http\Response

unenrollContact() public méthode

Unenroll a contact from a workflow.
public unenrollContact ( integer $workflow_id, string $email ) : Response
$workflow_id integer
$email string
Résultat SevenShores\Hubspot\Http\Response

upcomingEventsForContact() public méthode

Get upcoming (scheduled) events for a contact in a workflow.
public upcomingEventsForContact ( integer $workflow_id, integer $contact_id, array $params = [] ) : Response
$workflow_id integer
$contact_id integer
$params array
Résultat SevenShores\Hubspot\Http\Response