SevenShores\Hubspot\Resources\Contacts::getBatchByTokens PHP Method

getBatchByTokens() public method

This method will also return you much of the HubSpot lead "intelligence" for each requested contact record. The endpoint accepts many query parameters that allow for customization based on a variety of integration use cases. The endpoint does not allow for CORS, so if you are looking up contacts from their user token on the client, you'll need to spin up a proxy server to interact with the API.
See also: http://developers.hubspot.com/docs/methods/contacts/get_batch_by_utk
public getBatchByTokens ( array $utks, array $params = [] ) : Response
$utks array Array of hubspot user tokens (hubspotutk)
$params array Array of optional parameters ['property', 'propertyMode', 'formSubmissionMode', 'showListMemberships', 'includeDeletes']
return SevenShores\Hubspot\Http\Response
    function getBatchByTokens($utks, $params = [])
    {
        $endpoint = "https://api.hubapi.com/contacts/v1/contact/utks/batch/";
        $params['utk'] = $utks;
        $queryString = build_query_string($params);
        return $this->client->request('get', $endpoint, [], $queryString);
    }