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.
Which is translated by Google as:
hello, Answer your question first
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.