dev-master
9999999-devPHP Interface for FollowUpBoss.
dbad
The Requires
The Development Requires
by Troy Jaggard
api crm followupboss
Wallogit.com
2017 © Pedro Peláez
PHP Interface for FollowUpBoss.
PHP Interface for working with the Follow Up Boss API, (*1)
First, download the package, (*2)
composer require homeup/followupboss-php-api, (*3)
Then, add a couple lines to your .env file. If you don't have one, create and gitignore it, (*4)
FUB_KEY=my_fub_key FUB_SOURCE=website_url_or_name
Then you can simply use any of the following commands to send data to FollowUp Boss., (*5)
To get lead data from FUB:, (*6)
$people = new HomeUp\FollowUpBoss\People();
$person = $people->find("test@example.com");
To send in lead data:, (*7)
$events = new HomeUp\FollowUpBoss\Events();
$events->saveLead([
'firstName', 'John',
'lastName' => 'Smith',
'emails' => [['value' => 'johnsmith@example.com']],
'phones' => [['value' => '555-555-5555']],
'tags' => ['Free Market Report']
]);
You can also send in the inquiry event (example data: https://docs.followupboss.com/reference#events-post), (*8)
$events->inquiry(
['emails' => [['value' => 'johnsmith@example.com']]], // Lead data
"The main body of the inquiry goes here", // Body of inquiry
"Enter Type of Inquiry", // Example: "Property Inquiry" or "Registration"
[optional_property_data],
[optional_property_search_data],
[optional_campaign_data]
]);
You can also send in page and listing views like so (example data: https://docs.followupboss.com/reference#events-post), (*9)
$events->listingView(
['emails' => [['value' => 'johnsmith@example.com']]], // Lead data
[property_data],
]);
$events->pageView(
['emails' => [['value' => 'johnsmith@example.com']]], // Lead data
"Title of the Page",
"http://example.com/about", // URL of the page
);
You can add notes to leads, (*10)
$notes = new HomeUp\FollowUpBoss\Notes(); $notes->add(id_of_person, "This is the subject of the note", "This is the body of the note");
You can assign an action plan to a lead and retrieve a list of all action plans, (*11)
$ap = new HomeUp\FollowUpBoss\ActionPlans(); $plans = $ap->get()->actionPlans; $ap->assign(id_of_person, $plans[0]->id);
PHP Interface for FollowUpBoss.
dbad
api crm followupboss