Skip to content

Instantly share code, notes, and snippets.

@Mozu-CS
Created April 14, 2016 19:29
Show Gist options
  • Save Mozu-CS/69ef85842b5ec61bb09d52f3f5dfadfc to your computer and use it in GitHub Desktop.
Save Mozu-CS/69ef85842b5ec61bb09d52f3f5dfadfc to your computer and use it in GitHub Desktop.
Some event resources
[TestMethod]
public void Static_Event_Data()
{
var eventNotificationResource = new Mozu.Api.Resources.Event.EventNotificationResource(_apiContext);
var eventSubscriptionResource = new Mozu.Api.Resources.Event.Push.SubscriptionResource(_apiContext);
var eventDeliveryResource = new Mozu.Api.Resources.Event.Push.Subscriptions.EventDeliverySummaryResource(_apiContext);
var eventCollection = eventNotificationResource.GetEventsAsync(filter: "topic ne order.abandoned").Result;
var subscriptions = eventSubscriptionResource.GetSubscriptionsAsync().Result;
var eventDeliveries = eventDeliveryResource.GetDeliveryAttemptSummariesAsync("c5bad72df8564ff08b2da5c4013ba6c9").Result;
var eventDelivery = eventDeliveryResource.GetDeliveryAttemptSummaryAsync("c5bad72df8564ff08b2da5c4013ba6c9").Result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment