douxi8759 2018-11-05 10:57
浏览 679
已采纳

从Postman调用shopify API

I need to create a webhook in shopify using Postman. I have entered following:

Method: POST

URL: https://{{api_key}}:{{api_password}}@{{store_name}}.myshopify.com/admin/webhooks.json

Parameters:

{
    "topic": "order/creation",
    "address": "https://example.com/shopify_app/order_created.php"
}

Headers: [{"key":"Content-Type","value":"application/json","description":""}]

I have replaced {{api_key}} with API key created while creating the app, and {{api_password}} with the access_token.

When I hit this, I get "Please log in" screen. Please check below image:

enter image description here

  • 写回答

3条回答 默认 最新

  • drxyaox153896 2018-11-12 05:00
    关注

    It's Seems to you not passing shopify token to your postman request. So please pass "X-Shopify-Access-Token " to request header

    enter image description here

    It will solve your problem

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥20 为什么zynq CAN IP 无法进入config配置模式,XCan_SelfTest函数失效?
  • ¥15 Pycharm中程序直接运行可以但进入调试报错
  • ¥15 MATLAB动图问题
  • ¥15 有段代码不知道怎么理解,const isToken = (config.headers || {}).isToken === false
  • ¥15 我的显卡支持CUDA最高版本是12.3,这个版本也支持VS 2022 17.0这种情况下如果我想下载CUDA11.8,需要下载旧版本的VS2022吗
  • ¥100 采用栈和深度优先算法取消graphics库采用其他方式显示路径打印显示路径取消graphics库
  • ¥15 pointnet2包安装
  • ¥20 射频功率问题,解答者有酬谢!
  • ¥80 构建降雨和积水的预测模型
  • ¥15 #Qt Transform setTransform()在鼠标拖动移动视角是一致在原地不动,无法变换视角(细微观察似乎视图有在原地抖动),无法变换视角(细微观察似乎视图有在原地抖动)