Home >Backend Development >PHP Tutorial >Share Taobao API auxiliary function-applicable CI framework_PHP tutorial
This article introduces and shares the Taobao API auxiliary function-applicable CI framework to all students. Friends who need to know more can refer to it.
Recently I am rewriting a Taobao website. Considering the future scalability, I integrated it into CI. This raises a question. How to integrate Taobao’s SDK into the class library? After carefully reading the Taobao API documentation, I found a non-SDK calling method. Based on this, I modified it and integrated it into a CI helper function. Now I share the source code with everyone, hoping to help students in need.
Calling the method is very simple. Pass in an array parameter, where method is the API interface you plan to call, and the remaining parameters are filled in according to the actual needs of the API interface. Let me give you a calling example here.
The code is as follows
|
Copy code | ||||
http: //www.bkjia.com/PHPjc/444590.html