HMS:无法通过 API 回复评论

HMS: Unable to reply to comment through API

正在尝试使用 API 回复客户评论。

调用对评论的回复API回复被提交并且returnsrtn成功代码

得到

{ ret: { rtnCode: 50010003, rtnDesc: 'param error' } }

我们以HTTP格式提交时使用的API详情如下

POST /api/reviews/v1/manage/dev/reviews HTTP/1.1

Host: connect-api-dra.cloud.huawei.com

requestId: XXXXXXXXXXXXXXXXXX

client_id: XXXXXXXXXXXXXXXXXX

Authorization: Bearer {Access token here}

Content-Type: application/json

Content-Length: 414

    {
    
        "lang": "en-US",
    
        "appId": "XXXXXXXX",
    
        "reviewId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    
        "devReplyContent": "Dear, Thank you for your Wonderful feedback. We appreciate your feedback and star rating. Please feel free to reach out to us anytime if you have any questions!",
    
        "countryCode": "IN"
    
    }

根据this docs:语言,例如zh_CN。该值由 ISO-639-2 中定义的语言代码和 country/region 代码组成,用下划线 (_).

分隔

所以你可以试试把这里的短线改成下划线,看看行不行。

请尝试使用“lang”:“en_US”,而不是“lang”:“en-US”。[用下划线 (_) 分隔]

请参阅下文link了解有关参数的更多详细信息。

https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/agcapi-com-reviewreply-0000001162548117