SubscriptionResponse missing `blacklistedData` property
grokify opened this issue · 1 comments
grokify commented
The SubscriptionResponse
struct in subscription_response.go
is missing the property for blacklisted data. This appears to be a Swagger spec issue.
Here's the current definition:
type SubscriptionResponse struct {
Uri string `json:"uri,omitempty"`
Id string `json:"id,omitempty"`
CreationTime time.Time `json:"creationTime,omitempty"`
Status string `json:"status,omitempty"`
EventFilters []string `json:"eventFilters,omitempty"`
ExpirationTime time.Time `json:"expirationTime,omitempty"`
ExpiresIn int64 `json:"expiresIn,omitempty"`
DeliveryMode *DeliveryModeResource `json:"deliveryMode,omitempty"`
}
Here's an example message:
{
"uri":"https://platform.ringcentral.com/restapi/v1.0/subscription",
"records":[
{
"uri":"https://platform.ringcentral.com/restapi/v1.0/subscription/11112222-3333-4444-5555-666677778888",
"id":"11112222-3333-4444-5555-66667777888",
"creationTime":"2018-05-08T09:30:59.425Z",
"status":"Blacklisted",
"eventFilters":[
"/restapi/v1.0/glip/posts"
],
"expirationTime":"2018-05-15T09:30:59.425Z",
"expiresIn":549029,
"deliveryMode":{
"transportType":"WebHook",
"encryption":false,
"address":"https://1234567890.ngrok.io/webhook"
},
"blacklistedData":{
"reason":"Webhook responses with code: [404], reason: [Not Found]",
"blacklistedAt":"2018-05-08T13:45:48.755Z"
}
}
]
}