public SendTestNotificationToDestinationResponse InvokeSendTestNotificationToDestination() { // Create a request. SendTestNotificationToDestinationInput request = new SendTestNotificationToDestinationInput(); request.SellerId = sellerId; string mwsAuthToken = "Amzn.mws.c2b0d4ad-e73e-b729-d3a1-b0998fcd6a9f"; request.MWSAuthToken = mwsAuthToken; request.MarketplaceId = marketplaceId; Destination destination = new Destination(); destination.DeliveryChannel = "SQS"; request.Destination = destination; AttributeKeyValueList attributes = new AttributeKeyValueList(); AttributeKeyValue att = new AttributeKeyValue() { Key = "sqsQueueUrl", Value = "https://sqs.us-west-2.amazonaws.com/889329361753/AnyOfferChangedQueue" }; attributes.Member.Add(att); destination.AttributeList = attributes; request.Destination = destination; return(this.client.SendTestNotificationToDestination(request)); }
public DeleteSubscriptionResponse InvokeDeleteSubscription() { // Create a request. DeleteSubscriptionInput request = new DeleteSubscriptionInput(); request.SellerId = sellerId; request.MWSAuthToken = mwsAuthToken; request.MarketplaceId = marketplaceId; string notificationType = "AnyOfferChanged"; request.NotificationType = notificationType; Destination destination = new Destination(); destination.DeliveryChannel = "SQS"; AttributeKeyValueList attributes = new AttributeKeyValueList(); AttributeKeyValue att = new AttributeKeyValue() { Key = "sqsQueueUrl", Value = "https://sqs.us-west-2.amazonaws.com/889329361753/AnyOfferChangedQueueDev" }; attributes.Member.Add(att); destination.AttributeList = attributes; request.Destination = destination; return(this.client.DeleteSubscription(request)); }
public Subscription GetSubscription() { GetSubscriptionInput getSubscriptionInput = new GetSubscriptionInput(); getSubscriptionInput.MarketplaceId = aWSCredentials.MarketplaceId; getSubscriptionInput.MWSAuthToken = aWSCredentials.MwsAuthToken; getSubscriptionInput.SellerId = aWSCredentials.SellerId; Destination destination = new Destination(); destination.DeliveryChannel = "SQS"; AttributeKeyValue attributeKeyValue = new AttributeKeyValue() { Key = "sqsQueueUrl", Value = "https://sqs.us-west-2.amazonaws.com/889329361753/AnyOfferChangedQueue" }; AttributeKeyValueList attributeKeyValueList = new AttributeKeyValueList(); attributeKeyValueList.Member.Add(attributeKeyValue); destination.AttributeList = attributeKeyValueList; getSubscriptionInput.Destination = destination; return(client.GetSubscription(getSubscriptionInput).GetSubscriptionResult.Subscription); }
public IMWSResponse RegisterDestination() { // Create a request. RegisterDestinationInput registerDestinationInput = new RegisterDestinationInput(); registerDestinationInput.MarketplaceId = aWSCredentials.MarketplaceId; registerDestinationInput.MWSAuthToken = aWSCredentials.MwsAuthToken; registerDestinationInput.SellerId = aWSCredentials.SellerId; Destination destination = new Destination(); destination.DeliveryChannel = "SQS"; AttributeKeyValue attributeKeyValue = new AttributeKeyValue() { Key = "sqsQueueUrl", Value = "" }; AttributeKeyValueList attributeKeyValueList = new AttributeKeyValueList(); attributeKeyValueList.Member.Add(attributeKeyValue); destination.AttributeList = attributeKeyValueList; registerDestinationInput.Destination = destination; return(client.RegisterDestination(registerDestinationInput)); }