FecifyApi-开始

在使用开放api的准备工作

获取token

1.点击开放api插件,进入

2、点击添加权限按钮, 创建权限

3.填写信息,勾选权限,进行保存

4.点击复制按钮,复制创建的token即可

Api调用

base url,就是您的店铺的地址,譬如:https://www.fecshop.cn

  • 当您访问商品列表,商品URL为: /manager/api/apps/openapi/product/list,那么完成的请求api url:https://www.fecshop.cn/manager/api/apps/openapi/product/list
  • 如果您将商家端后台的后缀进行了更改,那么需要将manager更改为您的商家端后台的后缀
  • 譬如:您的商家端后台的后缀更改为:managerxxxxx,那么请求的url为:https://www.fecshop.cn/managerxxxxx/api/apps/openapi/product/list

在请求的header加入参数open-access-token,对应的值为上面获取的token即可

Content-Type: application/json
open-access-token: {open-access-token}

以postman为例子:

1.在postman请求,header token填写,如下图:

2.提交请求参数:

Copyright © fecify.com 2022 all right reserved,powered by Gitbook该文件修订时间: 2025-05-19 20:06:57

results matching ""

    No results matching ""