You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
FindModifiedVideos call has incorrect documentation. #5
pageSize and pageNumber in FindModifiedVideos() from the ReadApi are documented as optional nullable values. If null is passed for either of these values, the API crashes.
pageSize may not be omitted, since if is compared to MAX_VIDEOS_PER_PAGE without checking whether it is null. Autoboxing a null Integer to a primitive int results in a NullPointerException.
I'll have a look at both of these, although there are default values imposed by the Media API services, so omitting them would only be a small convenience. E.g. if you leave out pageSize, you'll get a max page size of 100 (the absolute max allowed by all read api calls). If you leave pageNumber out, you'll get the first page. So the work around would be to simply set these to 100 and 1 even if you don't care about the actual values for some reason.
Activity
three4clavin commentedon Nov 29, 2012
I'll have a look at both of these, although there are default values imposed by the Media API services, so omitting them would only be a small convenience. E.g. if you leave out pageSize, you'll get a max page size of 100 (the absolute max allowed by all read api calls). If you leave pageNumber out, you'll get the first page. So the work around would be to simply set these to 100 and 1 even if you don't care about the actual values for some reason.
tgoldenatwork commentedon Nov 29, 2012
That's fine, as long as they are documented as such.
three4clavin commentedon Nov 29, 2012
4.1.9 just cut - if you pass null in now for page size, page number, sort by or sort order, those params should simply be left off the URL request