Unable to specify additional request params to slides.presentations.get with typescript #1363
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I need to fetch all the URLs of images in a presentation using the slides API and want to use the
fields
parameter in my request so that only the image urls are returned and not the entire presentation data.Using plain javascript the following works fine:
However, doing the same this with Typescript does not compile because the params argument for this call is defined by
Params$Resource$Presentations$Get
which only includes anauth
andpresentationId
key so I'm unable to addfields
here.If i try to use the additional Axios options parameter (as suggested in the docs) this compiles but the axios params are ignored and
fields
is not included in the request:I can get around the issue by casting the original params to
any
but there seems to either be an issue with either the Typescript definitions or the Axios option params merging depending on what the desired way to use this API is.Environment details
googleapis
version: 33.0.0The text was updated successfully, but these errors were encountered: