这个OAuth头有什么问题?
这是我使用OAuth1.0库生成的OAuth头。如下所示这个OAuth头有什么问题?,oauth,netsuite,Oauth,Netsuite,这是我使用OAuth1.0库生成的OAuth头。如下所示 {"Authorization":"OAuth realm=\"TSTDRV1606019\",oauth_consumer_key=\"c85f08d536fb43ffbf199896b970af6cc8ae3b9ffbd4d5a8d7bd35c36bbc58be\",oauth_nonce=\"PxTkoW9AHGgo36obe2qL\",oauth_signature=\"60eebfff6843f7fb652f98ce6dd65
{"Authorization":"OAuth realm=\"TSTDRV1606019\",oauth_consumer_key=\"c85f08d536fb43ffbf199896b970af6cc8ae3b9ffbd4d5a8d7bd35c36bbc58be\",oauth_nonce=\"PxTkoW9AHGgo36obe2qL\",oauth_signature=\"60eebfff6843f7fb652f98ce6dd65fe025d9837e\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1497605488\",oauth_version=\"1.0\"","content-type":"application/json"}
我不断收到如下用户错误
"error" : {"code" : "INVALID_REQUEST", "message" : "The request could not be understood by the server due to malformed syntax."}}
谁能告诉我哪里出了问题
感谢所有的帮助 不确定这是否是唯一的问题,但看起来您缺少了
oauth\u令牌。请参见自Netsuite 2021.2版起,带有HMAC-SHA1签名方法的TBA(基于令牌的身份验证)已被弃用。积极使用HMAC-SHA1的用户必须切换到HMAC-SHA256。否则,用户可能会发现以下带有4xx错误代码的错误
{
"error": {
"code": "INVALID_REQUEST",
"message": "The request could not be understood by the server due to malformed syntax."
}
}
我在SuiteAnswers上读到,我看到的错误的可能原因可能是时间戳或签名方法被拒绝。此外,我修改了我的标题,使其包含文章中提到的令牌,但仍然没有骰子