SevenShores\Hubspot\Tests\Integration\Resources\ContactsTest::getBatchByIds PHP Method

getBatchByIds() public method

public getBatchByIds ( )
    public function getBatchByIds()
    {
        $contacts = [$this->createContact(), $this->createContact()];
        $ids = array_reduce($contacts, function ($vids, $contact) {
            $vids[] = $contact->vid;
            return $vids;
        }, []);
        $response = $this->contacts->getBatchByIds($ids);
        $this->assertEquals(200, $response->getStatusCode());
    }