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

Unable to pass params to contacts.get_all() #111

Open
kvdb opened this issue Jan 11, 2021 · 1 comment
Open

Unable to pass params to contacts.get_all() #111

kvdb opened this issue Jan 11, 2021 · 1 comment

Comments

@kvdb
Copy link

kvdb commented Jan 11, 2021

As documented in the project README (https://github.com/jpetrucciani/hubspot3#passing-params), I should pass params to send extra properties to hubspot. Seems this doesn't work for contacts:

contacts = client.contacts.get_all(params={"showListMemberships": "true"}, extra_properties=["hs_language"])

I got:

    contacts = client.contacts.get_all(params={"showListMemberships": "true"}, extra_properties=["hs_language"])
  File "/home/kvdb/.local/share/virtualenvs/send-cMuOhGEa/lib/python3.8/site-packages/hubspot3/contacts.py", line 163, in get_all
    batch = self._call(
TypeError: _call() got multiple values for keyword argument 'params'

@freekklein
Copy link

freekklein commented May 10, 2021

Hi kvdb,
No you can only get contacts with extra properties, like:
contacts = client.contacts.get_all(extra_properties=["hs_language"])

And get extra information on Memberships by diving into:
client.contacts.get_contact_by_id(contact_id="ID")

In here you have you ListMemberships information

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

No branches or pull requests

2 participants