HubSpot / hubspot-api-php

HubSpot API PHP Client Libraries for V3 version of the API
Apache License 2.0
193 stars 81 forks source link

Query Rows by xx #374

Open badererliebert opened 1 month ago

badererliebert commented 1 month ago

At the moment, there is no 'query rows by field -> value' method in the PHP classes, equivalent to the CURL method I screenshotted in the docs and attached. You can get a row by ID, but since row ID's are created dynamically there's no way of knowing the pk ID value of a row you want to query, and no way of filtering a query by arbitrary column value like this

https://api.hubapi.com/cms/v3/hubdb/tables/gen_test/rows?post_id__eq=10

I'm going to use a workaround where I just use a CURL GET request according to these docs to make the queries I need, but I'd like to suggest this as an enhancement - the ability to query data by column value seems rather integral to basic CRUD functionality to me, as I can't update a row without finding it first and I can't find it without query capability. Unless I'm missing something?

Thanks Brian

Screenshot 2024-08-05 164557