I have a couple youtube accounts connected to my Google account, I tried using googlecl to upload a video from my home server and obviously it uploaded my private video to organisation account I have access to. It just asks me for my username, not for account name. Tried googling, found nothing.
Related
I am working on desktop video editing application. In this app I need to implement Youku video uploading feature. For this purpose I registered my app on https://cloud.youku.com and got the ClientId to use the Video Upload API.
The official documentation (Chinese) says that I need access and refresh tokens to use the Upload API. Using the Upload API with manually generated access token I managed to upload videos to my own Youku account.
However, in my application I need to upload videos to an end user's account. According to the answer on How to get youku access_token I am trying to open the following URL to authorize my app in the end user's account.
https://openapi.youku.com/v2/oauth2/authorize?state=&redirect_uri=https%3A%2F%2Fispringsolutions.com&response_type=code&client_id={MYAPPCLIENTID}.
However I am getting the following error response:
code=1005&type=SystemException&description=Client+id+invalid
I am using the same ClientId that I used to upload videos to my account.
I also found the following document http://api.sandbox.yes.youku.com/open_upload.html (Chinese, can be Google-translated) mentioning the different authorization URL https://api.youku.com/oauth2/authorize?client_id={client_id}&response_type=code&redirect_uri={CALLBACK_URL}&state=. However this API is seems to be crossed out since September, 2015.
So, is it possible today to authorize a custom application in end user's account on Youku for video uploading? I have two hypotheses:
Youku have removed the ability to authorize third party applications to upload videos to an end user's account
or
The third party application have to pass a sort of verification process to get authorized in end user's account
I've finally got a response from Youku on this question.
hello 你好,
先解答您的问题
1.https://openapi.youku.com/v2/oauth2/authorize?这个接口已经废弃了,建议使用此文档中的上传方案https://cloud.youku.com/docs?id=109
2.您可以使用一个accesstoken,将您平台的视频统一上传至优酷同一个账号中,方便您管理内容
谢谢
Which is translated by Google as:
hello,
Answer your question first
https://openapi.youku.com/v2/oauth2/authorize? This interface has been deprecated, it is recommended to use the upload scheme in this document https://cloud.youku.com/docs?id=109
You can use one accesstoken to upload videos of your platform to the same account on Youku, which is convenient for you to manage content
Thank you
So, I can conclude that it is currently not possible to authorize your application with Youku to upload a video to another user account.
Youku Upload API is now suitable only for batch upload of videos to your account. You can't use the Youku Upload API in your application to let the application automatically upload a video to an end-user account. Users have to upload their videos manually to Youku via Web Browser.
I have a youtube channel, CNLohr, http://youtube.com/cnlohr which I use as my primary livestreaming platform. It is distinct from my primary gmail account. My gmail account has its own youtube, but I don't have subscribers or anything on that. CNLohr is a "Brand manager"
My problem is that when authorizing an API application it seems to only apply to my gmail account account. Even if I authorize it as my youtube brand. It's very confusing as I can select my youtube or email account when at youtube but I cannot when visiting the API pages.
For example, if I visit https://developers.google.com/youtube/v3/live/docs/liveChatMessages/list and attempt to use the "Try this API feature" it works flawlessly with my email account - however - there seems to be no way to log onto that site as "CNLohr." When I click the icon up to, it only shows my gmail account and does not show my youtube account as an option.
No matter what I try I can't seem to get livestream or live stream chat IDs from my brand manager account, though it's trivial via my normal gmail account.
How should I proceed if I wish to use the youtube API with my primary 24k subscriber account?
(Scratched out just so no image screevers get my email, it's okay for you guys to know it!)
This issue has been resolved by youtube as of Jan, 2018. Brands are now first-class citizens, and can perform the oauth as expected.
I have a google account that I was previously uploading videos to using the v2 YouTube API. This account I guess has two accounts linked to it, because when I go through OAuth flows I have to choose which account.
The 1st account, the one I setup the API in developer console, gives me the option to authorize YouTube API controls.
The 2nd account, the one that actually is the YouTube channel, only says that I'm giving my application offline access, there is no permissions specified relating to YouTube.
I did my OAuth using the 1st account, since that one actually listed youtube permissions. Got my refresh token and added it to the application. However, when I go to attempt to insert a video to YouTube I get the following error:
Code 401 Unauthorized: youtubeSignupRequired
It's as though I'm not linking at all to the YouTube channel account even though they are both on the same Google account.
Has anyone encountered this before?
By the way, I know with certainty that my API calls work properly, as we were able to upload from the dev environment. The dev account is only a single account though that owns the channel on the same account as the API.
I was able to resolve this.
It turned out I needed to do the OAuth with the 2nd account, the one for the YouTube channel. Despite it not requesting any permissions related to YouTube and only getting offline access, I was able to successfully upload using the refresh token I received.
Definitely a case of the most illogical solution being the correct one.
What I want to do in a nutshell:
In our app I want to be able to upload videos to our company YouTube account. Our app has 'host' users and 'guest' users. The host can upload videos for a guest. The video will be unlisted so they're not available publicly and the guest will get a message in the app telling them that a new video is available. We'll then play the video in the app using the YouTube link.
I've downloaded the google-api-objectivec-client source and integrated it in the project. I've studied the YouTube example application that comes along with it. In this example application the user logs into her own account using OAuth 2.0 which is not our use case. The app should have authorization to upload videos to our company account without bothering the user.
I've read a lot of documentation and searched the web to see if someone else has solved this but I was not able to find the right solution.
My Question:
How should our app get authorization to upload videos? Using API keys, using Google+, using a service account? If someone can point me in the right direction, I would really appreciate it!
Unfortunately this is not possible at the moment.
I have completed uploading videos to YouTube from my website, that's for particular user account only (means all videos uploaded to single user account). Now I want that user come to my site enter their YouTube username and password and selected video will be upload to their account.
Till now what i have done is i have uploaded videos to my own account with my developer key. But now i want that if any user uploads video to YouTube then it uploads to his/her account. I am not able to find out the way because it may possible that they don't have developer key which is required to upload. So i need help in this.
I have seen API but I am not able to work out help for this. Anyone can help me in this?
Thanks!
You need to use the OAuth 2.0 API documented here: https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2 to obtain the credentials you need.
Using the credentials you create a link to Google's authorization service which your customers follow. On that page they can either allow, or deny, access to their YouTube account to your service. Assuming permission is granted, the service will redirect to the "callback" location URL you provided along with a pair of access tokens. You can then use these tokens to upload videos to YouTube and the videos will appear in the customer's account as they they had uploaded them.
It would be helpful if you could be more specific about what you are asking.
This is the youtube API for uploading videos:
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_uploading_videos.html