2

我只想检索 youtube api v3 活动列表的某些类型的活动。有很多类型:

-bulletin -channelItem -comment -favorite -like -playlistItem -recommendation -social -subscription -upload

我希望能够只检索上传、评论和推荐。我该怎么做?我有以下请求,这会检索所有类型:

function requestVideoPlaylist() {
    var requestOptions = {
    home: 'true',
    part: 'snippet, contentDetails',
    maxResults: 8
  };



  var request = gapi.client.youtube.activities.list(requestOptions);
  request.execute(function(response) {


    var activityItems = response.result.items;

});}
4

0 回答 0