Other common interfaces
Other commonly used API interfaces for AnqiCMS, the ones that can be called are: adding a friendly link interface, deleting a friendly link interface, obtaining a friendly link list interface, obtaining a comment list interface, publishing a comment interface, comment like interface, obtaining a message form field interface, adding a message interface, obtaining a system setting interface, obtaining a contact information interface, obtaining a navigation list interface, uploading a picture resource interface, and calling a graphical verification code interface
-
Add a friendly link interface
API call address {domain address}/api/friendlink/create?token={token} Description: {domain address} needs to be replaced with your domain address, {token} needs to be replaced with the token in the background content import interface function, such as /api/friendlink/create?token=xxx Call method POST f -
Delete the friendly link interface
API call address {domain address}/api/friendlink/delete?token={token} Description: {domain address} needs to be replaced with your domain address, {token} needs to be replaced with the token in the background content import interface function, such as /api/friendlink/delete?token=xxx Call method POST f -
Get the link list interface
API call address {domain address}/api/friendlink/list description: {domain address} needs to be replaced with your domain address, such as /api/friendlink/list call method GET request parameter None Return parameter Field name Type Description code int Error code msg string Error cause description data obje -
Get comment list interface
API call address {domain address}/api/comment/list description: {domain address} needs to be replaced with your domain address, such as /api/comment/list call method GET request parameter Field name Type Required Description id int No Document ID, specified document ID order string No Comment sorting, default id de -
Post comment interface
API call address {domain address}/api/comment/publish description: {domain address} needs to be replaced with your domain address, such as /api/comment/publish call method POST application/json request parameters Field name Type Required Description archive_id int is the document id of the comment u -
Comment and Like Interface
API call address {domain address}/api/comment/praise Description: {domain address} It needs to be replaced with your domain address, such as /api/comment/praise Call method POST application/json request parameter Field name Type Required Description id int Yes Comment ID Return parameter Field name Type Description -
Get the message form field interface
API call address {domain address}/api/guestbook/fields Description: {domain address} It needs to be replaced with your domain address, such as /api/guestbook/fields Call method GET request parameter None Return parameter Field name Type Description code int Error code msg string Error cause description data ob -
Add a message interface
API call address {domain address}/api/guestbook.html Description: {domain address} It needs to be replaced with your domain address, such as /api/guestbook.html Call method POST application/json request parameters Field name Type Required Description user_name string Yes Username conte -
Get the system settings interface
API call address {domain address}/api/setting/system description: {domain address} needs to be replaced with your domain address, such as /api/setting/system call method GET request parameter None Return parameter Field name Type Description code int Error code msg string Error cause description data object -
Get the contact interface
API call address {domain address}/api/setting/contact Description: {domain address} It needs to be replaced with your domain address, such as /api/setting/contact Call method GET request parameter None Return parameter Field name Type Description code int Error code msg string Error cause description data obje -
Get the navigation list interface
API call address {domain address}/nav/list description: {domain address} It needs to be replaced with your domain address, such as /api/nav/list call method GET request parameter Field name Type Required Description typeId int No Navigation type, default: 1 Return parameter Field name Type Description code int Error code msg string -
Upload image resource interface
API call address {domain address}/api/attachment/upload description: {domain address} It needs to be replaced with your domain address, such as /api/attachment/upload call method POST form-data request parameters Field name Type Required Description category_id int No Image resource category ID id -
Call the graphical verification code interface
API call address {domain address}/api/captcha description: {domain address} needs to be replaced with your domain address, such as /api/captcha call method GET request parameter None Return parameter Field name Type Description code int Error code msg string Error reason description data object captcha content dat -
Get the homepage Banner list interface
API call address { Domain address} /api/banner/list Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/banner/list Call method GET Request parameters Field name Type Required Description type string No Default value "default", you can create multiple banner groups in the background, and then use type to call banners of different groups -
Login interface
API call address { Domain address} /api/login Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/login Call method POST Request parameters Field name Type Required Description platform string Yes Login method, the default value is website, optional values are: tt, swan, alipay, qq, weapp, wechat, inwechat -
Get user delivery address interface
API call address { Domain address} /api/order/address Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/order/address Call method GET Request parameter None Return parameter Field name Type Description code int Error code msg string Error cause description data object Result content data result -
Save user delivery address interface
This interface does not require calling API call address { Domain Name Address} /api/order/address Description: { Domain Name Address} needs to be replaced with your domain name address, such as https://en.anqicms.com/api/order/address Call method POST Request Parameter Field Name Type Required Description id int No Address ID name string Yes Recipient phone string Yes Contact number -
Cancel the order interface
API call address { Domain address} /api/order/cancel Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/order/cancel Call method POST Request parameter Field name Type Required Description order_id string Yes Order ID Return parameter Field name Type Description code int Error code msg string -
Create an order interface
API call address { Domain address} /api/order/create Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/order/create Call method POST Request parameters Field name Type Required Description goods_id int No Product ID quantity int No Product quantity details object[] No Multiple product information -
Get Order Details Interface
API call address { Domain address} /api/order/detail Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/order/detail Call method GET Request parameters Field name Type Required Description order_id string Yes Order ID Return parameter Field name Type Description code int Error code msg string -
Order confirmation receipt interface
API call address { Domain address} /api/order/finish Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/order/finish Call method POST Request parameters Field name Type Required Description order_id string Yes Order ID Return parameter Field name Type Description code int Error code msg string -
Order creation payment interface
API call address { Domain address} /api/order/payment Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/order/payment Call method POST Request parameters Field name Type Required Description order_id string Yes Order ID pay_way string Yes Payment method: Optional values are: wechat, weapp -
Order Refund Interface
API call address { Domain address} /api/order/refund Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/order/refund Call method POST Request parameters Field name Type Required Description order_id string Yes Order ID Return parameter Field name Type Description code int Error code msg string -
Get the order list interface
API call address { Domain address} /api/orders Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/orders Call method GET Request parameters Field name Type Required Description status string No Order status, default is empty, supported values are: empty value, waiting, paid, delivery, finished, refunding -
Check whether the order is paid interface
API call address { Domain address} /api/payment/check Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/payment/check Call method GET Request parameters Field name Type Required Description order_id string Yes Order ID Return parameter Field name Type Description code int Error code msg string -
Register interface
API call address { Domain address} /api/register Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/register Call method POST Request parameters Field name Type Required Description user_name string No User name password string No Password captcha_id string No Graphic verification code ID -
Get the distribution staff income list interface
API call address { Domain address} /api/retailer/commissions Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/commissions Call method GET Request parameters Field name Type Required Description Current int No Get the specified paging data, current page number pageSize int No Display quantity, number per page -
Get the distribution staff details interface
API call address { Domain address} /api/retailer/info Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/info Call method GET Request parameters Field name Type Required Description Retailer_id int Yes Distributor ID Return parameter Field name Type Description code int Error code msg string -
Get the distribution team list interface
API call address { Domain address} /api/retailer/members Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/members Call method GET Request parameters Field name Type Required Description current int No Get the specified paging data, current page number pageSize int No Display quantity, number per page Return parameters -
Get the distribution order list interface
API call address { Domain address} /api/retailer/orders Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/orders Call method GET Request parameters Field name Type Required Description Current int No Get the specified paging data, current page number pageSize int No Display quantity, number per page Return parameter Field name -
Obtain the distribution staff statistics interface
API call address { Domain address} /api/retailer/statistics Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/statistics Call method GET Request parameter None Return parameter Field name Type Description code int Error code msg string Error cause description data object Result content -
Get update the real name interface for the distribution staff
API call address { Domain address} /api/retailer/update Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/update Call method POST Request parameters Field name Type Required Description real_name string No Real name Return parameter Field name Type Description code int Error code msg -
Get the cash withdrawal interface
API call address { Domain address} /api/retailer/withdraw Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/withdraw Call method POST Request parameter None Return parameter Field name Type Description code int Error code msg string Error reason description Request data example None Return data example { -
Get cash withdrawal list interface
API call address { Domain address} /api/retailer/withdraw Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/retailer/withdraw Call method GET Request parameters Field name Type Required Description Current int No Get the specified paging data, current page number pageSize int No Display quantity, number per page Return parameters -
Get the home page TDK interface
API call address { Domain address} /api/setting/index Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/setting/index Call method GET Request parameter None Return parameter Field name Type Description code int Error code msg string Error reason description data object Result content data result parameter Field name -
Get user details interface
API call address { Domain address} /api/user/detail Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/user/detail Call method GET Request parameters Field name Type Required Description userId int Yes User ID Return parameter Field name Type Description code int Error code msg string Error cause description data -
Update user information interface
API call address { Domain address} /api/user/detail Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/user/detail Call method POST Request parameters Field name Type Required Description user_name string No Username real_name string No Real name email string No Email -
Get user group details interface
API call address { Domain address} /api/user/group/detail Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/user/group/detail Call method GET Request parameters Field name Type Required Description id int Yes Group ID Return parameter Field name Type Description code int Error code msg string -
Get user group list interface
API call address { Domain address} /api/user/groups Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/user/groups Call method GET Request parameter None Return parameter Field name Type Description code int Error code msg string Error cause description data object[] Result content data result item parameter -
Modify user password interface
API call address { Domain address} /api/user/password Description: { Domain address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/user/password Call method POST Request parameters Field name Type Required Description old_password string Yes Old password password string Yes New password Return parameter Field name Type Description -
Generate applet code interface
API call address { Domain address} /api/weapp/qrcode Description: { Domain address} It needs to be replaced with your domain address, such as https://en.anqicms.com/api/weapp/qrcode Call method POST Request parameters Field name Type Required Description path string Yes applet path scene string Yes scene Return parameter Field name Type Description code int -
WeChat official account service address interface
API call address { Domain Address} /api/wechat Description: { Domain Address} needs to be replaced with your domain address, such as https://en.anqicms.com/api/wechat Call Method This interface is the WeChat official account service address, refer to the access guide GET/POST Description This interface is not an ordinary access interface, and is a WeChat official account service address interface. When configuring the WeChat official account, fill in the WeChat official account official website -> Development-Basic Settings -
Official WeChat authorization interface
API call address { Domain Name Address} /api/wechat/auth Description: { Domain Name Address} needs to be replaced with your domain name address, such as https://en.anqicms.com/api/wechat/auth Call Method This interface is the WeChat login web page authorization call interface, which needs to be opened in WeChat. This interface is a jump interface, see Web page authorization GET request parameters Field name Type Required Description state string No state = -
Manually update the Sitemap interface
API call address { Domain Address} /api/import/sitemap?token= { token} Description: { Domain Address} needs to be replaced with your domain address, {token} needs to be replaced with the token in the background content import interface function, such as https://en.anqicms.com/api/import/sitemap?token=xxx Call method POST form-data Request parameters GET parameters