SevenShores\Hubspot\Tests\Integration\Resources\ContactsTest::getBatchByEmails PHP Метод

getBatchByEmails() публичный Метод

public getBatchByEmails ( )
    public function getBatchByEmails()
    {
        $contacts = [$this->createContact(), $this->createContact()];
        $emails = array_reduce($contacts, function ($values, $contact) {
            $values[] = $contact->properties->email->value;
            return $values;
        }, []);
        $response = $this->contacts->getBatchByEmails($emails);
        $this->assertEquals(200, $response->getStatusCode());
    }