Reputation: 511
I tried to get likes and dislikes using youtube analysis api and now having problem setting the parameters.
There is a parameter called 'ids', which should be set to 'channel==USER_ID, where USER_ID identifies the currently authenticated YouTube user', but I am confused in the format of this, I don't know how to write this.
I can got the userID, and I tried 'ids = channel == #userid#', but it wrong. So could someone tell me the right format to make this request, and give me a example.
This is my wrong request:https://www.googleapis.com/youtube/analytics/v1/reports?v=2.1&end-date=2012-10-10&ids=channel==##userid##&metrics=views,likes,dislikes&start-date=2010-10-10&access_token=##access_token##
Upvotes: 0
Views: 1472
Reputation: 4337
You can encode special symbols in urls, for example url encoded =
would be %3D
So you can send request to https://www.googleapis.com/youtube/analytics/v1/reports?v=2.1&end-date=2012-10-10&ids=channel%3D%3D##userid##
and that ids
parameter would translate to channel==##userid##
Upvotes: 1