【问题标题】:NetSuite RESTlet NLAuth using Postman使用 Postman 的 NetSuite RESTlet NLAuth
【发布时间】:2018-12-21 22:27:46
【问题描述】:

我是 NetSuite 的新手,我尝试使用 Postman 发出 REST 请求,我在标题中写了 NLAuth 授权,如上一行:

    Authorization : NLAuth nlauth_account=0000000, nlauth_email=at@at.com, nlauth_signature=mypassworld,nlauth_role=3

我按照本教程的流程进行操作:https://community.boomi.com/docs/DOC-2676#jive_content_id_To_call_the_getRecord_RESTlet

但我收到以下回复:

    {
        "error": {
          "code": "INVALID_LOGIN_ATTEMPT",
          "message": "Invalid login attempt."
        }
    }

【问题讨论】:

  • 请在问题中包含您正在执行的实际请求。

标签: json http postman netsuite


【解决方案1】:
【解决方案2】:

最佳做法是使用 OAuth,这样凭据就不会暴露。 NS 使用 OAuth 1.0。 领域 = NS 帐号 签名方法可以是 SHA1 或 SHA256

确保选中“将参数添加到标题”。 在发送之前始终“更新请求”以生成正确的 Nonce/Timestamp

将 Content-Type = application/json 添加到标头

正文必须是有效的 JSON 对象。

【讨论】:

    【解决方案3】:

    使用 Postman 的内置授权工具构建正确的 OAuth1 标头:https://www.getpostman.com/docs/v6/postman/sending_api_requests/authorization

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-07
      • 1970-01-01
      • 1970-01-01
      • 2016-01-14
      • 2018-01-08
      • 2016-11-16
      相关资源
      最近更新 更多