-
Notifications
You must be signed in to change notification settings - Fork 23
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
Expose OAuth access token and introduce new MediaWithTotal #74
base: master
Are you sure you want to change the base?
Conversation
Hey @Yosif-Smint thanks for your PR. We'll take a thorough look at it asap. Although, I quickly skimmed through it. I do have 1 change that I would request from the get go. It is do with the Thanks! |
Hello @Arpit-Sharma-USC - thanks for your feedback. Given your suggestion, how do you suggest we solve our issue when querying media (actually this bug renders your SDK unusable): Newtonsoft.Json.JsonReaderException: 'Input string '266.5' is not a valid integer. Path 'activeOriginalFocusPoint.y', line 1, position 4425.' In this case, on your side, you'd have to change your output format to never be double. |
Just to chime in here, as I create half these changes my self yesterday and went to do a PR on most of the same. (Adding the ability to get the Total count etc.) Sorry for the a bit long post... Regarding the ActiveOriginalFocusPoint - as rh78 wrote, this renders the SDK completely broken for us. If it warrants a major bump or what ever I can't really judge, but until this is changed to double/float (my local version uses float, but I don't know the data format used in Bynder...) we can't switch back to the Nuget version of the SDK. IMO I think the naming / discoverability of these new APIs should be considered - I'm unsure if it's best to have overloads of GetMediaListAsync() with different input models. It might be, but "MediaListQuery" doesn't really tell me why I want that compared to MediaQuery (again, IMHO). Also my next task was to add the "count=1" version - and I'm a bit unsure how "we" want to expand the SDK to this. (As the return models will be different, as well as you can't combine total=1 with count=1.) A couple of comments to the PR: For the orderBy, I added the following comment (I can post another PR based on this if you want, but for now, I'll just post it here...)
And created the AssetOrderBy, similar to CollectionOrderBy:
|
Change OrderBy summary description
Rename MediaListQuery request parameter 'Total' to 'IncludeTotal'
Hi @Reonekot Naming things is always hard :) I agree that we should make this consistent.
This is if we want to follow/preserve the existing approach. Again, I am not fully happy with this naming schema, however based on the Apiary documentation, other folks will be able to orient themselves. I am open for suggestions, so we can move this along. By the way I introduced the other changes that you suggested. I would also suggest that we should discuss 'ActiveOriginalFocusPoint' in a separate ticket/pull request. Cheers, CC: @rh78, @Arpit-Sharma-USC |
@Yosif-Smint - yes, as always naming is hard. But I agree, I think it's good to be able to have similarity with the docs. Also having the different options in the functions makes it more discoverable IMO, (I personally call it GetMediaWithCount(..) though, but not sure that's better...) though looking at again today, I'm not sure if it would be enough/better with basically just having the overloads with the different input models? Anyway, I guess we need more opinions on that one :)
|
@Reonekot, for me the returned response is count or counts grouped by the asset generic data and custom meta properties, Besides the naming, do you have any other suggestions on the pull request? I will create an issue regarding 'ActiveOriginalFocusPoint'. Yosif |
Besides renaming to GetMediaWithTotalAsync, to match a coming (hopefully) GetMediaWithCountAsync, I don't have anything - looks pretty much what I have locally for this. :) Ed: And thanks for opening the other issue as well - will be watching that to see what Support will say to the matter. |
Extend Bynder SDK to exclude meta property options, due to request ti…
Development
Extend the SDK to expose metaproperty option retrieve methods
Development
Feature/metaproperty is multi filter
Development
Development
Update Newtonsoft.Json to 13.0.3
Pre-cleared
Add parameters not yet present in Bynder SDK
Hey,
I noticed that the original 'GetMediaListAsync' is missing total count functionality as per the documentation when we make a rest request and we set total = 1, the have an exception, since the returned model is different.
Another observation was that 'ActiveOriginalFocusPoint' could return 'double' instead of 'int'
The last one is a feature request, where the integration that I am doing needs to set explicitly an access token to the OAuthService.
Please consider my changes and suggest a feedback. Thanks!
CC: @Arpit-Sharma-USC