Reputation: 11
I want to allow the visitors of my website to search videos of my youtube account by typing keywords. So far I've been using the "key" parameter to authenticate my other requests and it worked just fine, but for this specific one I am getting a 400 code when setting the myOwn
parameter to true.
https://developers.google.com/youtube/v3/docs/search/list#request
If I understand what is said in the documentation by properly authenticated, I'd need to get into the hassle of setting up a OAuth flow just to do that. Beside the inconvenience, this doesn't even seem to address my use case since I don't want the user of my website to be authenticated with his account but with my account : I want the myOwn
parameter to point to my account.
How can can I achieve what I am after, with a client-side only solution and - ideally - without OAuth ?
Upvotes: 1
Views: 91
Reputation: 11
The solution seems to be to use the channelId parameter and set it to my account.
Upvotes: 0
Reputation: 504
If you want the solution to be client-side only (e.g. a javascript front-end) your authentication credentials should be disclosed to every client and this could be dangerous because anyone could take control of your youtube account.
Upvotes: 1