HubSpot / hubspot-api-python

HubSpot API Python Client Libraries for V3 version of the API
Apache License 2.0
337 stars 107 forks source link

'Discovery' object has no attribute 'lists_api' #309

Closed JulianAntoniusGeist closed 4 months ago

JulianAntoniusGeist commented 4 months ago
        list_search_request = ListSearchRequest(offset=0, query=_option_longlist2, count=500,
                                                additional_properties=["hs_list_size_week_delta"])
        try:
            api_response = client.crm.lists.lists_api.do_search(list_search_request=list_search_request)
            print(api_response)
            _choosen_list_id = api_response.lists[0].list_id

This is my Code. I am using it as it is descriped on https://developers.hubspot.com/docs/api/crm/lists

That is my Error: 'Discovery' object has no attribute 'lists_api'

I have installt and upgradet the newesd Module from hubspt. Can sombody help me?

alzheltkovskiy-hubspot commented 4 months ago

Hi @JulianAntoniusGeist . In the latest version of SDK the name lists_api was changed to list_app_api. Hubspot have changed the response of the method, I'll fix it as soon as possible. Please note this CRM Lists in beta now. We are going to fix it in new version.