Skip to content

YouTube API not handling part in calls  #2

@mhawksey

Description

@mhawksey

Hi Spencer - I was able to generate a YouTube library (required to deal with this issue) script id 184YJUhP8FecVrnAoXlbLJ6S0gSacpZrTVKgxWdJpyj9ecRyGgcQVwI0- which I've dropped into this gist

I've been able to setup oAuth2 access but when I make calls like:
YouTube.channelsList('snippet,contentDetails,statistics', {mine: true});

I'm getting

Error: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Required parameter: part", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "Required parameter: part" } } (line 83, file "Youtube", project "YouTube")

Tracing the error back to the channelsList() it appears to accept the part string but this isn't included in CALLPAGE_()

function channelsList(part,options){
  var path = buildUrl_("channels",options);
  var callOptions = {method:"GET"};
  var ChannelListResponseItems = CALLPAGE_(path,callOptions,"items");
  return ChannelListResponseItems;
}

Is something in the generator missing that would incorporate part? (there are a number of other API calls that also have the part call which are also ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions