Search code examples
google-api-php-clientyoutube-data-api

Where do i specify the "fields" parameter using the Google API Client Library - PHP (Beta)


I'm using the Google API Client Library - PHP (Beta) for youtube data api v3 I'm doing a playlist list operation according to the docs: https://developers.google.com/youtube/v3/docs/playlistItems/list however i can't find a way of providing the fields parameter using the API Client Library.

Is there anyone who got an idea to would i go about it?

Thanks


Solution

  • fields is a standard query parameter (as defined here).

    It should be supported by the Youtube API and you may pass it in the $params array parameter, along with $maxResults, etc. Please refer to the sample you provided to see where is $params.