Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

add batch create or update function #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phpstudyone
Copy link

I want to add Create or update a group of contacts function .
use following code :

$hapikey = "demo";
$hubspot = new Fungku\HubSpot($hapikey);
$contacts = $this->hubspot->contacts()->batch_create_or_update(array(
        array('email'=>'[email protected]','param'=>array('firstname'=>'JasonT5','lastname'=>'Zhang5','phone'=>'555-122-2325','ispaid'=>'No')),
        array('email'=>'[email protected]','param'=>array('firstname'=>'JasonT6','lastname'=>'Zhang6','phone'=>'555-122-2326','ispaid'=>'No')),
        array('email'=>'[email protected]','param'=>array('firstname'=>'JasonT7','lastname'=>'Zhang7','phone'=>'555-122-2327','ispaid'=>'No')),
        array('email'=>'[email protected]','param'=>array('firstname'=>'JasonT8','lastname'=>'Zhang8','phone'=>'555-122-2328','ispaid'=>'No')),
        ));

Create or update a group of contacts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant