youtube-data-api

Using the YouTube v3 Data API for .NET, how is it possible to get a refresh token?

非 Y 不嫁゛ 提交于 2019-12-04 05:44:58
问题 I need to be able to use a refresh token to be able to re-authenticate a token after the access token has expired. How can I do this using the C# v3 API? I've looked at the UserCredential class and AuthorizationCodeFlow class and nothing is jumping out at me. I'm using the following code to authenticate it originally. var result = await new AuthorizationCodeMvcApp(this, new AppFlowMetadata()). AuthorizeAsync(CancellationToken.None); if (result.Credential != null) { var service = new

How to get refreshToken when using GoogleAuthUtil

梦想与她 提交于 2019-12-04 04:37:12
I'm using GoogleAuthUtil in Google Play Services on Android. After calling GoogleAuthUtil.getToken(context, userName, scope) , I got a token like this: ya29.wQBWztab5kcgMLcMbAI0LwFzHC_DPrxauSWbX4P6KOnBEOgjcm9V7OI9AFr6JGxDY54gP00RemzzgML56_gWRHn8Q5jK16BLY-0y83Gc5vfe3xN-QpyM4d7z This is an access_token, which can be used in calling Google Apis. Then, how can I get a refresh token to refresh this access_token, because I also use Google oauth java library and YouTube Java Library in my Android project, I want to use these two libraries to maintain/manage the access_token , refresh token and

500 Error With Youtube API

天涯浪子 提交于 2019-12-04 02:36:44
问题 I am trying to edit my channel description using the Youtube Data API V3, but I get a "500 Internal Server Error" if I try to do anything with "brandingSettings". I even tried starting a private browsing session and using a different Google account. Is this a Google issue that will be fixed soon? Or am I doing something wrong? EDIT: Sorry, I am new. I am just using the "Try It!" thing on developers.google.com. Request: PUT https://www.googleapis.com/youtube/v3/channels?part=brandingSettings

Youtube Data API v3: like comment of another user

匆匆过客 提交于 2019-12-04 01:57:27
问题 I want to use the Youtube Data API to like comments. When I try to like a comment from myself it works without any problem, but when I try to like a comment from someone else I get an error. "reason": "invalidCommentMetadata", "message": "The request metadata is invalid.", I am using the Google API PHP Client. This is the code that I use to update the like: $videoComments = $youtube->comments->listComments('snippet', array( 'id' => $comment->id )); $videoComments[0]->snippet->viewerRating =

YouTube Data API Error calling GET [URL] : (500) Backend Error

↘锁芯ラ 提交于 2019-12-04 01:46:51
问题 I want to grab all Subscribers of a Channel from the API. I do this onBehalfOfContentOwner. And it works. But after 3700 channels i get and 500 Backend Error as response. If i wait 20-30 minutes it works again for another 1000 subscriber and then i get the 500 error again. Error calling GET https://www.googleapis.com/youtube/v3/subscriptions?*****: (500) Backend Error Whats the reason for the 500 Backend Error bug? Too many Request? Bug in the API? My Quota is total fine. Thanks 回答1: After

Can we use google youtube data api without OAuth

China☆狼群 提交于 2019-12-03 21:46:23
After reading the documents of Google API. I know that if a project we create needs to access private data, we should use oauth. But here is my situation. we will open a business account in Youtube, and we will create a project to push videos to our own account, we don't need to operate other user's' account. Can we use google youtube data api without OAuth? There are two ways to access private user data with Google APIs. Strait Oauth2 . where you have a consent for asking the owner of the account if you can access it Service accounts which are technically pre authorized by the developer.

YouTube API v3 returns truncated watch history

天涯浪子 提交于 2019-12-03 21:09:12
I'm able to access my watch history via the YouTube v3 data API, but it only returns my most recent 30 videos (though I see many more when I view the Watch History on YouTube.com). And then when I watch another video, it returns 31. When I watch another, 32. If it can return more than 30, why didn't it return more originally? I understand that the API might have a limit, but why start at 30 then grow? And with paging, there really shouldn't be a limit, right? I must be doing something wrong. Here's my code: def getWatchHistory(youtube): playlistId = getWatchHistoryPlaylistId(youtube) videos =

ViewPagerAdapter: YouTube video playback stopped due to unauthorized overlay on top of player

Deadly 提交于 2019-12-03 17:14:59
Asking this question because I did not find solution/suggestions after searching for hours. All answered solutions are with Fragment. What I am looking for ViewPagerAdapter and FrameLayout. My ViewPagerAdapter xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/promotion_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ImageView android:id="@+id

YouTube API and brand account

自闭症网瘾萝莉.ら 提交于 2019-12-03 17:01:57
I am using, since a long time, a Google script that accesses my YouTube channel, gets and modifies some information from it and saves some data in a Google sheet. It always worked fine, but then, about a week ago, Google somehow split my access rights between my normal account (primary email) and my YouTube account (that goes under a different nickname). I cannot find a way to run even the simplest command: var my_playlists = YouTube.Playlists.list('snippet', { mine: true, maxResults: 50, }) .items; The problem is that google now prompts me with an authorization page and I can choose between 2

How to upload Video to YouTube using Google API PHP Client Library and Youtube API V3?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 14:19:27
Trying to simply upload video using Google API PHP Client (latest release 1.1.6) , but code in Youtube API V3 is not working and giving 500 internal server error. What is wrong with code below when I am not using any bleeding edge beta version, I have just masked 3 parameters below otherwise it is copied form Youtube API V3 . require_once 'google-api-php-client/src/Google/Client.php'; require_once 'google-api-php-client/src/Google/Service/YouTube.php'; session_start(); $OAUTH2_CLIENT_ID = 'CHANGE1-0osfh0p5h80o9ol2uqtsjq5i7r1jun.apps.googleusercontent.com'; $OAUTH2_CLIENT_SECRET = 'CHANGE2azMpt