【发布时间】:2020-03-20 18:51:00
【问题描述】:
我遇到了一个奇怪的问题,我们实现的相同代码在一个系统上运行良好,但在另一个系统上出现问题。收到此错误 -
{"$severity":"error","$dataCode":"DataParsingError","$message":"您发送的数据无法处理。","$source":"代理" }
请告诉我为什么我在一个系统上遇到这个问题,但在另一个系统上工作。 遵循本文档 - https://qa-developer-portal-home.sageaccountantscloud.com/accounting/guides/authentication/
端点 - https://oauth.accounting.sage.com/token
POST /token HTTP/1.1
Host: oauth.accounting.sage.com
client_id=4b64axxxxxxxxxx00710&
client_secret=iNumzTxxxxxxxxxxhVHstrqWesH8tm9&
grant_type=refresh_token&
refresh_token=b06b13xxxxxa275f08bfb57a3
【问题讨论】:
-
您在暂存环境中使用的文档版本非常旧。实际文档是developer.sage.com/api/accounting/guides/authentication
-
两者都有相同的代码来刷新令牌