【发布时间】:2016-11-25 11:50:23
【问题描述】:
我目前正在使用和验证 commercetools api。 我想订阅某个 SQS 队列,以便将消息推送到该队列。 但是,如果我尝试为某种消息类型添加订阅,则 api 会返回:
{"statusCode":400,"message":"TypeId 'DeliveryAdded' 未知或订阅不支持。","errors":[{"code":"InvalidInput","message":"The TypeId 'DeliveryAdded' 未知或不受订阅支持。"}]}] 根本原因
对于 resourceTypeId,我使用上述名称(例如 DeliveryAdded) 请求本身很好。 我尝试了一些不同的类型,总是得到相同的结果。是否有任何 MessageType,实际上支持订阅?
编辑:
POST https://api.sphere.io/some-project/subscriptionsHTTP/1.1
{
"destination" : {
"type" : "SQS",
"accessKey" : "XXXXXXXX",
"accessSecret" : "XXXXXXXX",
"region" : "EU",
"queueUrl" : "https://sqs.eu-central-1.amazonaws.com/XXXXXX/YYYYYYYY"
},
"messages" : [ {
"resourceTypeId" : "CustomerCreated"
} ]
【问题讨论】:
标签: message subscriptions commercetools