Inheritance: extends Resource
Esempio n. 1
0
 /**
  * Creates a new contact with the HubSpotApi
  *
  * @return \SevenShores\Hubspot\Http\Response
  */
 private function createContact()
 {
     $contactsClient = new Contacts(new Client(['key' => 'demo']));
     $contactResponse = $contactsClient->create([['property' => 'email', 'value' => 'rw_test' . uniqid() . '@hubspot.com'], ['property' => 'firstname', 'value' => 'joe'], ['property' => 'lastname', 'value' => 'user']]);
     sleep(1);
     return $contactResponse;
 }
Esempio n. 2
0
 private function createContact()
 {
     $contacts = new Contacts(new Client(['key' => 'demo']));
     $response = $contacts->create([['property' => 'email', 'value' => 'dl_test_contact' . uniqid() . '@hubspot.com']]);
     return $response->vid;
 }