Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://github.com/fungku/hubspot-php#paginate-through-all-contacts #6

Closed
bickart opened this issue Apr 13, 2015 · 3 comments
Closed
Labels

Comments

@bickart
Copy link

bickart commented Apr 13, 2015

In your example https://github.com/fungku/hubspot-php#paginate-through-all-contacts; you are using properties when you should be using property

if you replace with the correct parameter; then the firstname and lastname are not returned. Can you determine the cause of this issue?

@ryanwinchester
Copy link
Collaborator

i will look at it

@ryanwinchester
Copy link
Collaborator

Sorry, you are correct. If you correct it to property you can only include one property, and adding additional ones breaks it.

I will look at it more closely tonight.

Seems like the query string will have to look like &property=firstname&property=lastname for it to work.

@ryanwinchester
Copy link
Collaborator

That should work now.

note the syntax change in readme:

$collection = $hubspot->contacts()->all([
        'count'      => 10,
        'property' => ['firstname', 'lastname'], // array of properties
        'vidOffset'  => 123456,
]);

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

No branches or pull requests

2 participants