【问题标题】:API call works on postman but not on filemakerAPI调用适用于邮递员,但不适用于filemaker
【发布时间】:2019-01-20 08:30:09
【问题描述】:

我正在尝试使用来自 API 服务的数据的 filemaker 中的应用程序进行编程。问题是,当我使用邮递员测试 url 时,它返回我想要的 JSON 文件没有问题,但是当我使用 Filemaker 的 the insert from url 命令时,结果是 405 method not allowed 错误。

作为附加信息:我正在尝试从 API 获取 JSON 对象到我的 Filemaker 数据库中的文本字段,并使用脚本来填充它。

这是我在 filemaker 中的脚本:

Insert from URL[Select; With Dialog: Off; Projects::JSONdata;

"https://soporte.adasoft.es/rest/api/2/search?jql=project=****&maxResults=10&fields=Id,key,status,name,startdate,details,lastupudated";

Curl Options:"-X GET" &
"-H 'Authorization: Basic
************'" &
"-H 'Cache-Control: no-cache'"]

观察:我已将敏感数据(例如加密的简单身份验证登录)替换为“*”。

【问题讨论】:

  • Postman 可以选择生成 CURL 请求。试试这个并将其复制到 FileMaker 中

标签: api postman filemaker


【解决方案1】:

试试这个

Insert from URL[Select; With Dialog: Off; Projects::JSONdata;

"https://soporte.adasoft.es/rest/api/2/search?jql=project=****&maxResults=10&fields=Id,key,status,name,startdate,details,lastupudated";

cURL options:
"-X GET" & "--header \"Authorization: Basic *******\"" & "--header \"Cache-Control: no-cache\""]

参考:https://fmhelp.filemaker.com/help/16/fmp/en/index.html#page/FMP_Help/insert-from-url.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-07-03
    • 2021-05-29
    • 2018-03-17
    • 1970-01-01
    • 1970-01-01
    • 2020-05-06
    • 2019-11-09
    • 2019-09-25
    相关资源
    最近更新 更多