Skip to content

Add query parameter support to list_items method#4

Closed
pjpires wants to merge 1 commit intovfonic:masterfrom
pjpires:collection-items-query-params
Closed

Add query parameter support to list_items method#4
pjpires wants to merge 1 commit intovfonic:masterfrom
pjpires:collection-items-query-params

Conversation

@pjpires
Copy link
Copy Markdown

@pjpires pjpires commented Mar 18, 2025

The list collection items endpoint supports query parameters, which can be useful when searching for a specific item in a collection by a field other than its Webflow ID.

This PR introduces a query_params: argument, allowing queries like:

my_item = CLIENT.list_items(@collection_id, query_params: { external_id: 'my-item-external-id' })

Note: Since offset and limit are also query parameters and explicitly included in the method signature, they take precedence over any values in the query_params: hash.

@vfonic
Copy link
Copy Markdown
Owner

vfonic commented Jun 20, 2025

Thanks for the great PR! I've cherry-picked your changes and they have been merged and released on v1.2.0. Thanks again!

@vfonic vfonic closed this Jun 20, 2025
@pjpires pjpires deleted the collection-items-query-params branch June 24, 2025 11:28
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

Successfully merging this pull request may close these issues.

2 participants