Xiyin shein open platform interface usage records

Recently I took on a small project that required me to collect some data through Xiyin's open platform interface and import it into the factory ERP system. Of course, I am mainly responsible for collection. It is said to be collection, but in fact it is to obtain data through the interface. It is not a passive acquisition, but a legal operation performed under authorization.

Open platform address: Open platform (sheincorp.cn)

The signature rules are designed to be relatively simple and convenient, and are much more comfortable to call than those on WeChat.

The call is basically the same, pass parameters, and then get the json result. The last step is to separate and obtain the data you need.

Some common questions.

Below are some callable interfaces.

The result obtained by the order interface.

It can be seen that the interface is updated very diligently. I don’t know if I just started working on open interfaces, but I found that some documents still have some problems. Another problem is that the signature is calculated through the method he provided, but occasionally it will prompt that the signature is invalid when obtaining data. This situation will probably happen once after dozens of calls. Sometimes it never appears. I don’t know if it is a bug in their platform. , but it does not affect the use. If you cannot obtain the data, try again. It is almost impossible to have two errors in a row.

Through such interface platform development, we roughly understand that open platforms are basically like that. If you want to design such a platform, you probably have some ideas in mind. Basically, you open the appid and key, then work on the signature algorithm, various encryptions, and finally open some interfaces for calling and returning data. The interfaces are just different directories of those URLs.

Guess you like

Origin blog.csdn.net/sysdzw/article/details/129211140