I am making a rails(3.0.11) application using youtube_it api. Is it possible to get the uploaded videos of a user by using only his youtube account id/google account id, and without any kind of authentication?
User uploads feed does not need authentication. You can access the feed at:
http://gdata.youtube.com/feeds/api/users/<user-id>/uploads
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.
We're working on an integration with youtube channels (using Youtube Data Api v3). We need to access the videos (private also) on our user's channels.
The flow is the following:
User authorizes his/her youtube account on our site using OAuth.
We show user the list of videos on user's youtube channel.
User selects some of them (they can be private) and sends us for processing.
We need to somehow access the actual video files which the user asks us to process.
The issue is that youtube does not give any streaming URLs or download links.
Looks like, the API provides only iframe embedded code, which works ONLY for the browser, where the user is actually logged into youtube.
How can we access(can we?!) the private video, if we have the OAuth access-token of the video owner?
The YouTube Data API lets you incorporate functions normally executed on the YouTube website into your own website or application. The lists below identify the different types of resources that you can retrieve using the API. The API also supports methods to insert, update, or delete many of these resources. This in a sense means that you can see most of what you can see on the YouTube website including uploading new videos.
Downloading Youtube videos is against their Terms of Service, so the API does not support that.
Page linked above refers to Youtube ToS that states:
You shall not download any Content unless you see a “download” or similar link displayed by YouTube on the Service for that Content.
YouTube partners may have access to this feature in their API (no idea i have never seen the api), if you have access to this i suggest you contact your manager directly they should be able to instruct you on how to access it assuming the feature exists.
I'm new to YouTube API. Is it possible to get user's data if he is authenticated into my application using his Google account.
The YouTube Api v2 used to have a feature like this if i remember correctly. Unforutnatly that API has long since been shut down.
Activites.list which just gives a list of video's recommend that the user watch. There is nothing for History of what videos the user has watched or liked.
Authenticated:
If the user is authenticated you can use the home parameter which is used to show the videos that would be recommend to said user by YouTube
Set this parameter's value to true to retrieve the activity feed that displays on the YouTube home page for the currently authenticated user.
Youtube's api ToS state that we must allow a user to upload a video to their own account or to our youtube application account. What would be the proper process for doing this? The code snippets refer to using one's own account (e.g. api key and secret key). Will these work for uploading to the user's account?
Well, if you want users to upload video on your channel, what they need is your OAuth token. This SO question also have an information about your problem.
This documentation will explain you on how to obtain an OAuth access token. It contains sample code that you can copy/follow.
For more information, you can check these tutorials:
How to Authenticate & upload videos to YouTube Channel in PHP
PHP server-side YouTube V3 OAuth API video upload guide
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