Where can I find the access_token
, refresh_token
in my youku account?
I found out how to upload video to youku.com using external script with the use of a API, but I need access_token
, refresh_token
to use it.
Where can I find the access_token
, refresh_token
in my youku account?
I found out how to upload video to youku.com using external script with the use of a API, but I need access_token
, refresh_token
to use it.
You can find the Youku api here: http://open.youku.com/docs/tech_doc.html It is in Chinese, so I suggest you open this link using google chrome, then right click the page (after it is finished loading) and press 'Translate to English'
Hope this helps
You need to authorize your Youku app and to use the get code to obtain a token.
https://openapi.youku.com/v2/oauth2/authorize?client_id={YOURCLIENTID}&response_type=code&redirect_uri={YOURCALLBACKURL}
.Use the get parameter code to get your access token by doing a POST CURL call to https://openapi.youku.com/v2/oauth2/token with the following parameters
The $result will be a json array containing the access_token
{"access_token":"3cc08bffcd48a86a0e540f9ed1be42f4","expires_in":"2592000","refresh_token":"f8d78ce2005c9d1e0b62cd29f61ba3f9","token_type":"bearer"}
More infor here : http://open.youku.com/docs/docs?id=101