Monday, July 3, 2017

Youtube Data API Making a comment (Ruby)

Leave a Comment

I'm currently trying to create a new thread using the Youtube API. Here is the example provided:

def comments_insert(service, properties, part, **params)     resource = create_resource(properties) # See full sample for function     params = params.delete_if { |p, v| v == ''}     response = service.insert_comment(part, resource, params) end  comments_insert(service,     {'snippet.parent_id': 'pS16m0FttKk',      'snippet.text_original': ''},      'snippet') 

I'm essentially using their exact sample code but I'm getting an error that reads: ArgumentError - unknown keyword: snippet:

resource = ChannelbackController.create_resource({'snippet.parentId': '123', 'snippet.textOriginal': message})             response = service.insert_comment('snippet', resource).inspect 

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment