Order
First, account application
API Sub-two version, V2 and v3,v3 with rest request, to the request part of the parameters of the MD5 encryption, if you do not make, use V2, data structure and V3 difference is not small and has not maintained, I wait for the Youku customer contact me to find out the problem, exactly which step encryption error.
v2:http://cloud.youku.com/(called Youku video Cloud) v3:http://open.youku.com/index.html (Youku open Platform), both of the ClientID generic, secret did not test do not know whether it is generic. The certification process is basically nothing bad, the place to fill the URL, just find a page containing the app can be done. Here for help. If the great God has understood the V3 request signature encryption, please contact me. Tuition. Kneeling thanks. Start Research
Second, the V3API structure analysis, here only to the OPENAPI in the 8 functions to analyze, SDK and cloud on-demand do not mean, as if not free; no matter who does the API, there are corresponding error code control, error if there is no prompt to look like the document area to find the reason. Many are error-transmitting parameters.
(tips:1, v2v3 request URL, are different, can not delete V2 two letters to access the V3 version of the interface.)
2, must make the error request test, ensure that there is error prompt return can be rounded processing, this time you understand. )
Openapi:1 content output, 2 video Search, 3 Smart Recommendations, 4 user login, 5 user interaction, 6 user information, 7 video uploads, 8 video interaction;
1 content output: At present I began to use the content input of the copyright program Access, through the http://open.youku.com/data/content.html on the included several functions to understand. "Program" is related to Youku's official film and television series, "video" related to the Youku users upload; "album" Related to Me is not useless, speculation is that users upload video will be organized into albums such things. The basic information and details of a video, program, album, Commentary, character, as the name implies, is the detailed slightly of the information and is requested as needed. departure
Third, the specific use (where to write where, not all)
1 content Output Https://openapi.youku.com/v2/schemas/show/category.json First request this, request Copyright film classification, there are currently 8, of course, each of them may also have sub-categories. After getting the classification list, using the "Get XX by Category" Interface, get the list page, the user selects a video/program on the list page, according to the ID request "x XX Basic/Details" Such interface, people and comments related to the interface of the same, a layer of request can be, the field is more, choose it yourself. V2 version Simple request
V2 version is not maintained, but can still request, as for the V2 and V3 data structure, I guess there is always a place to connect, to note that the actual return data structure is different from the document written, or increase or decrease, be sure to make the actual request after the detailed reading of the return.
V2 version of the interface classification is rough and easy to understand, such as the program interface, only 6 interfaces to understand the first look.
1 program shows interface considerations, the return data because there are sub-categories, so the data structure is different, I have not specifically tested, 8 categories have separate fields need to make judgments.