HubSpot’s API clients for Node.js, PHP, Ruby, and Python all received a major version upgrade. This upgrade improves usability by changing many method names.
As an example, before the update: you might use crm.companies.batchAPI.createBatch() in the Node.js client.
After the update: you would use crm.companies.batchAPI.create(), removing the redundancy of using “batch” twice.
Also included is a new “get all” method for CRM objects across all libraries. The "get all" method handles pagination for you, making several API calls “under the hood” without you needing to know the details.
When is this happening?
The new versions are available now across the different package managers.
If you have any questions, please join the discussion here.
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!
We were using the Python requests module and not the hubspot-api-client Python module. However, neither the pages of the methods we used (for the same example: https://developers.hubspot.com/docs/methods/pages/get_pages), nor the documentation have been updated.
Could you please give us more details on the upgrade?
Hi @areynier, this update should not have affected what you were doing since the library that got updated does not have a method for the v2 pages API. Could you give some details on what's failing for you? If you could share the request you are sending to HubSpot and the response you are getting back, that would help us look into this.
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!