youtube-data-api

Upload video to YouTube with a service account on behalf of a user by server side data API V3

自作多情 提交于 2019-12-11 18:07:59
问题 I am trying to upload a video to YouTube account on behalf of 'user@gmail.com' by YouTube data API V3 and I receive 'access_denied' error. According to google documentation: I opened a service account using a google administrator account 'admin@gmail.com' and completed the steps in : www.developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority. I logged in as 'user@gmail.com' and gave permissions to 'admin@gmail.com' service account I created in step 1. (in www

Creating Multiple Google/YouTube Data API Keys

那年仲夏 提交于 2019-12-11 18:06:44
问题 Is it possible to create multiple API keys for the YouTube Data API? The majority of Live YouTube Subscriber Counters use loads of different API keys for their counters (as can be seen in their JavaScript code). The aim of doing so is to not exceed the daily quota limit of 1,000,000 and having to send requests every few seconds per page visited would mean that the limit would be reached very quickly. How are they able to get away with this? 回答1: Here is a SO post to answer your question.

Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver

﹥>﹥吖頭↗ 提交于 2019-12-11 16:31:13
问题 I'm a newbie Android "programmer" and I've tried to find the answer to this error without luck. There are some half answers but nothing that suggest what to do more exactly in my unique situation. This error comes when closing a YoutubePlayer activity. It seems I should unregister a receiver, possibly in onPause( )...but how do I do that and maybe more important, which receiver should be unregistered? Here is my logcat: 06-06 02:17:31.781 26887-26887/? E/ActivityThread: Service com.google

Cant access Youtube data api v3

我怕爱的太早我们不能终老 提交于 2019-12-11 16:00:17
问题 I am trying to access data api in order to search for videos based on keyword,, SearchListResponse list=search.execute(); But i am getting this exception: 403 Forbidden { "code": 403, "errors": [ { "domain": "usageLimits", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.", "reason": "accessNotConfigured" } ], "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } but i have

Why is Youtube API's schedule video not working?

╄→гoц情女王★ 提交于 2019-12-11 15:36:28
问题 I am using the exact example from here: https://developers.google.com/youtube/v3/docs/videos/insert To achieve scheduling this is what I have added to arguments: privacyStatus='private', publishAt='2018-12-21T02:01:07.000Z' (please verify publishAt has correct ISO 8601 format ) I am getting success(200) but the uploaded video is only private, not scheduled. 回答1: Found the issue, since I copied the code from example I forgot to update the initialize_upload function to include publishAt in the

YouTube V3 api returns considerably different LIKEs and Comments results from numbers on the Web

陌路散爱 提交于 2019-12-11 15:33:44
问题 YouTube v3 api returns significantly different LIKEs count from what is on the web version of YouTube. Compare these: https://monosnap.com/file/EdtDNTTGDK06zoCZ7IXkMdzn6WuyOo https://monosnap.com/file/CcJOiKl9CBMyncHQSrPv3lkLOuqeDD To replicate: https://www.googleapis.com/youtube/v3/videos?id=jWnhFM1Ttwg&key={api_key}&maxResults=50&part=statistics (https://console.developers.google.com/apis/credentials - use your Youtube V3 key) Any ideas? Many thanks! 回答1: Since I don't have any

YouTube API v3 returning 400 error when using pageToken

痞子三分冷 提交于 2019-12-11 15:24:28
问题 I am trying to get paginated comments on a video using following request: https://www.googleapis.com/youtube/v3/commentThreads?part=snippet,replies&videoId=zB8byQHNHHg&maxResults=5&pageToken='2'&key=randomstring But it is returning following response which shows 400 error: What could be the reason as the official documentation states using pageToken for doing the same. https://developers.google.com/youtube/v3/docs/commentThreads/list#parameters Anyone solved similar issue in the past? Please

How to get a specific comment of a YouTube video?

依然范特西╮ 提交于 2019-12-11 15:04:50
问题 Does anyone have any clue how to a specific comment on a YouTube video? For example the first one, or the last one and etc. I tried looking into the YouTube API but I haven't found anything. 回答1: The best I can see is Comments: list which returns a list of comment resources. I don't think you can get just a single one, I suspect you will need to get them all then search them yourself locally. There also doesn't appear to be any search type method with the YouTube api under standard parameters

what is jar file contains com.google.api.services.samples.youtube.cmdline.Auth and com.google.common.collect.Lists

若如初见. 提交于 2019-12-11 13:44:19
问题 i tried code youtube api example here: https://developers.google.com/youtube/v3/docs/captions/list#examples but i can import com.google.api.services.samples.youtube.cmdline.Auth and com.google.common.collect.Lists. i imported all jar file from here: developers.google. com/api-client-library/java/apis/youtube/v3 but i get error like thatenter image description here 回答1: See thie SO entry Having trouble importing "google.api.services.samples.youtube.cmdline.Auth;"? The class that you're looking

Getting the list of videoId in array using YouTube api v3 playlistItems and build another videos query to get statistics viewCount

我只是一个虾纸丫 提交于 2019-12-11 13:18:33
问题 I need to embed youtube videos from a playlist and also display the viewCount, the YouTube API v3 for playlistitems does not have the viewCount so, i need to do another query using the API v3 for videos which gives the statistics viewCount but need to add a comma-separated list of the YouTube video ID(s) in the query https://www.googleapis.com/youtube/v3/videos?part=statistics&id='.$listofvideoIDfromPlaylistItems.'&key={YOUR_API_KEY} This is what I have for the playlistItems public function