Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK doesn't return custom metaproperties when querying via getMediaInfo #112

Open
ningbit opened this issue Oct 26, 2023 · 7 comments
Open

Comments

@ningbit
Copy link

ningbit commented Oct 26, 2023

We noticed a discrepancy between what data the web API https://your-bynder-domain/api/v4/media/? returns vs the Java Bynder SDK method getMediaInfo.

Bynder Web API returns custom metaproperties in the following format property_NAME and attaches each of the properties to the response.

However, the Java Bynder SDK seems to not return those custom properties. Is there something we might be missing?

@thegreatdeku
Copy link

@ningbit The underlying API request for the request is the same https://your-bynder-domain/api/v4/media/?. However, the getMediaInfo function returns a Media object (see here for object reference). Because custom metaproperties may vary in name/key and the Media object only has a set list of attributes that it takes from the response, returning the custom metaproperties is not currently supported in getMediaInfo.

@ningbit
Copy link
Author

ningbit commented Oct 26, 2023

Thanks for responding. Is there any way to get those values from the SDK methods? Would this ever be supported in the near or long term future? Also if we know the metaproperty we need, is there an alternate way to query that?

@thegreatdeku
Copy link

If you have the propertyOptionId for the metaproperty, then you will be able to query for assets using the getMediaList method. We will add a ticket to implement the custom metaproperties to be supported by the Media object returned by the getMediaInfo method.

@ningbit
Copy link
Author

ningbit commented Oct 27, 2023

Thanks so much for adding that ticket to support returning custom metaproperties! Do you have any estimation of the timeline for when this might be implemented so I can manage the expectations of our Bynder users? We are in the middle of developing an integration.

@mkzetcom
Copy link

Any news on this?

@jdickel
Copy link
Contributor

jdickel commented Aug 6, 2024

I've created #126 as a solution for this issue.
@ahongbynder would you mind reviewing and confirming the PR?

When do you think the feature can be included in a version?

@ahongbynder
Copy link
Contributor

@jdickel Your changes have been merged and are part of version 2.2.24 release.

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

No branches or pull requests

5 participants