Skip to content

Edit MediaSample.java for MediaQuery with CollectionId#154

Merged
ahongbynder merged 1 commit intomasterfrom
API-2675
Mar 31, 2026
Merged

Edit MediaSample.java for MediaQuery with CollectionId#154
ahongbynder merged 1 commit intomasterfrom
API-2675

Conversation

@enveryasar
Copy link
Copy Markdown
Contributor

Description

Adds sample usage and documentation for the collectionId parameter in MediaQuery.

Changes

  • MediaSample.java: Added example demonstrating media filtering by collection ID
  • README.md: Updated documentation to reflect the new filtering capability

Testing

Manually tested - filtering works correctly:

  • Without collectionId: Returns all media from portal
  • With collectionId: Returns only media from specified collection

Example

MediaQuery query = new MediaQuery()
    .setCollectionId("collection-id")
    .setLimit(10);

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 40.081%. remained the same
when pulling 24eb461 on API-2675
into 700d939 on master.

@ahongbynder ahongbynder merged commit 9f5be58 into master Mar 31, 2026
8 checks passed
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.

3 participants