youtube-data-api

Google Apps Script returns an error “Limit Exceeded: URLFetch URL Length”

微笑、不失礼 提交于 2020-01-24 11:32:49
问题 YouTube data api v3 nextPageToken is too long that Google Apps Script returns an error Limit Exceeded: URLFetch URL Length when I tried UrlFetchApp.fetch("requesturl") ; Here is the request url www.googleapis.com/youtube/v3/commentThreads?key="+API_KEY+"&part=id&videoId="+ VIDEO_ID +"&order=relevance&textFormat="plaintext&pageToken=" + nextPageToken code var API_KEY = '***************************************'; var VIDEO_ID = 'oG2Ka3nOVzM'; var maxResults = 100 ; var pageToken = ""; var order

How I can hide controls, full screen buttons in Youtube Player android API?

戏子无情 提交于 2020-01-23 05:00:07
问题 I am trying to hide the buttons in a Youtube video player (api). I used player.setShowFullscreenButton(false) this hides the fullscreen button successfully, but I did not find way to hide the control button -- that button can go to youtube application. I tried using player.setPlayerStyle(PlayerStyle.MINIMAL); This hides all buttons, but also changes the progress bar, but I need the old progress bar. Any help? 回答1: You can initiate the player as a "Chromeless" player. That should do it. 回答2:

Android - YouTube Api player on floating window using service

帅比萌擦擦* 提交于 2020-01-22 02:37:07
问题 I like to implement YouTube Player as a floating window (on top all apps) on Android. I saw many apps that do the same like this one And I try to Understand how to implement it. I tried this : wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE); LayoutInflater li = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE); View vi = li.inflate(R.layout.youtube_view,null); YouTubePlayerView youTubeView = vi.findViewById(R.id.youtube_view); youTubeView.initialize(DeveloperKey

latest video by youtube api

给你一囗甜甜゛ 提交于 2020-01-17 23:04:11
问题 In order to learn this api I am trying to create a bot. one of the things this bot does is to first comment when a channel uploads a video. On some channels it works however on some channels it doesn't work. For example on this channel https://www.youtube.com/channel/UC295-Dw_tDNtZXFeAPAW6Aw it claims the latest video is https://www.youtube.com/watch?v=cZI3Krk59T4 when the real latest video is https://www.youtube.com/watch?v=pceedMMwwcE&t. self.youtube = build('youtube', 'v3', developerKey

Uploading video to Youtube using its REST API without the iOS SDK

房东的猫 提交于 2020-01-17 12:24:08
问题 Still a noob, so bear with me. I am using SWIFT 3 and the V3 YouTube Data API with REST. I can pull a list of my videos so my connection and authorization is working just fine. I can't seem to figure out how to upload though. I found an old post that was very similar to mine (Setting snippet data for youtube upload via REST API using Swift). I'm confused where they are getting that token variable from and how they pass it into this function. Also, not sure how to set the upload variable that

Uploading video to Youtube using its REST API without the iOS SDK

夙愿已清 提交于 2020-01-17 12:24:05
问题 Still a noob, so bear with me. I am using SWIFT 3 and the V3 YouTube Data API with REST. I can pull a list of my videos so my connection and authorization is working just fine. I can't seem to figure out how to upload though. I found an old post that was very similar to mine (Setting snippet data for youtube upload via REST API using Swift). I'm confused where they are getting that token variable from and how they pass it into this function. Also, not sure how to set the upload variable that

How to get public videos by location using youtube api?

大城市里の小女人 提交于 2020-01-17 05:36:24
问题 Hello i am new to Youtube api and looking for getting all the users public Youtube videos in Youtube by location using Youtube api .There are some existing apps like Geofeedia,COEverywhere, TrackinU which can get public posts of social networking sites by location . Is there is any way to get public Videos of an area in Youtube ? 回答1: Using YouTube Data API, using Search list with location parameter: The location parameter, in conjunction with the locationRadius parameter, defines a circular

Youtube API only showing old videos

前提是你 提交于 2020-01-16 14:39:53
问题 Since yesterday, one of the websites I manage that uses the Youtube API to list videos is only showing videos from ten years before... it should be showing the latest ones. The channel and API key are correct, and I cannot find the source of the problem. Has anyone else run into this? 回答1: I presume that it might be related to issue #128673552, https://issuetracker.google.com/issues/128673552. 来源: https://stackoverflow.com/questions/55198104/youtube-api-only-showing-old-videos

How to forget already given Oauth and ask for it again?

一笑奈何 提交于 2020-01-16 09:16:31
问题 In the official sample C# code for YouTube OAuth login, adding a Scope once after the user already given access to the application does not seem to work. (In this case, the user was myself.) I went to the third-party access page of my Google account and manually removed the application. But when I ran the app again, it did not show the OAuth page again, but simply passed the code and failed at the actual API call with "Token has been revoked.". I did not know how to remove the existing

YouTube API v3 returns no items

主宰稳场 提交于 2020-01-14 09:10:11
问题 A week ago I started using the YouTube API v3, and have been able to retrieve 13 items from the API using this URL: https://www.googleapis.com/youtube/v3/search?key={MyKey}&channelId={AChannelId}&part=snippet,id&order=date&maxResults=5 Today I used this exact same call/URL and now it returns: // 20140828161458 // https://www.googleapis.com/youtube/v3/search?key={MyKey}&channelId={AChannelId}&>part=snippet,id&order=date&maxResults=5 { "kind": "youtube#searchListResponse", "etag": "\