PHP Class Intercom\IntercomLeads

Afficher le fichier Open project: intercom/intercom-php Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( IntercomClient $client ) IntercomLeads constructor.
convertLead ( $options ) : mixed Converts Lead.
create ( array $options ) : mixed Creates Lead.
deleteLead ( string $id, array $options = [] ) : mixed Deletes Lead.
getLead ( string $id, array $options = [] ) : mixed Returns single Lead.
getLeads ( array $options ) : mixed Lists Leads.
leadPath ( string $id ) : string Returns endpoint path to Lead with given ID.

Method Details

__construct() public méthode

IntercomLeads constructor.
public __construct ( IntercomClient $client )
$client IntercomClient

convertLead() public méthode

Converts Lead.
See also: https://developers.intercom.io/reference#convert-a-lead
public convertLead ( $options ) : mixed
$options
Résultat mixed

create() public méthode

Creates Lead.
See also: https://developers.intercom.io/reference#create-lead
public create ( array $options ) : mixed
$options array
Résultat mixed

deleteLead() public méthode

Deletes Lead.
See also: https://developers.intercom.io/reference#delete-a-lead
public deleteLead ( string $id, array $options = [] ) : mixed
$id string
$options array
Résultat mixed

getLead() public méthode

Returns single Lead.
See also: https://developers.intercom.io/reference#view-a-lead
public getLead ( string $id, array $options = [] ) : mixed
$id string
$options array
Résultat mixed

getLeads() public méthode

Lists Leads.
See also: https://developers.intercom.io/reference#list-leads
public getLeads ( array $options ) : mixed
$options array
Résultat mixed

leadPath() public méthode

Returns endpoint path to Lead with given ID.
public leadPath ( string $id ) : string
$id string
Résultat string