netsuite 基于令牌的身份验证 [英] netsuite Token based Authentication

查看:164
本文介绍了netsuite 基于令牌的身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过基于令牌的方式对 netsuite 进行身份验证我在这里尝试过,但出现错误

I am trying to authenticate netsuite through token based I have tried it here but its giving error

{"error" : {"code" : "INVALID_LOGIN_ATTEMPT", "message" : "无效登录尝试."}}

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

我参考了堆栈解决方案

我现在将数据字符串作为 '' 传递,因为我只想进行身份验证.代码中可能缺少什么,可以在没有脚本 id 和部署 id 的情况下运行此代码吗?

I am passing data string as '' right now because I only want to authenticate. What may be am missing in the code and can this code can be run without Script id and deploy id?

推荐答案

不,您不能在没有脚本和部署的情况下运行代码.并且数据字符串应该是一个对象,即使它只是像 '{"test":true}' 这样的样本数据.

No, you cannot run the code without a script and deployment. And the data string should be an object, even if it's just sample data like '{"test":true}'.

另外,你所提到的PHP在技术上是不完整的.要将数据正确发送到 NetSuite 的 RESTLets,由于并发限制,您需要实现自动重试.也就是说,它不能帮助您解决仅连接的问题.

Also, the PHP you have referred to is technically incomplete. To properly send data to NetSuite's RESTLets you need to implement an automatic retry due to the concurrency limits. That said, it doesn't help you with the problem of just connecting.

您还应该调用 NetSuite 数据中心以获取正确的 URL.

You should also be calling the NetSuite datacenter to get the proper URL.

 * NetSuite SuiteAnser for datacenter calls
 * https://netsuite.custhelp.com/app/answers/detail/a_id/65684
 * 
 * Sample production response:
 * {"webservicesDomain":"https://webservices.na1.netsuite.com","restDomain":"https://rest.na1.netsuite.com","systemDomain":"https://system.na1.netsuite.com"}

这篇关于netsuite 基于令牌的身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆