findforsikring / leadvalidator-clients
此包最新版本(1.0.2)没有可用的许可证信息。
Leadvalidator API 包装器
1.0.2
2017-05-15 12:51 UTC
README
安装
$ composer require findforsikring/leadvalidator-clients
潜在客户来源使用
$client = new \LeadValidator\SourceClient("api token"); // List available campaigns $campaigns = $client->getCampaigns(); // Detailed campaign info $campaign = $client->getCampaign(12); /* * Post a lead * 1st parameter is campaign ID. * 2nd parameter must use keys defined in the campaign */ $success = $client->postLead(12, [ 'name' => 'Lead name', 'phone' => '12345678', 'email' => 'test@test.com' ]);
潜在客户使用
$client = new \LeadValidator\CustomerClient("api token"); /* * Get all new leads (not delivered yet) * Optionally limit by campaign or source * Optional pagination */ $leads = $client->getNewLeads(); /* * Get all leads from a period * Limit by creation-time or delivery-time * Optionally limit by campaign or source * Optional pagination */ $leads = $client->getLeadsFromPeriod();