csharp-sparkpost icon indicating copy to clipboard operation
csharp-sparkpost copied to clipboard

Replace Message Events API with the new Events API

Open jomargon opened this issue 6 years ago • 8 comments

The Events API will be discontinued on October 1, 2019.

jomargon avatar Jun 04 '19 20:06 jomargon

@jomargon Excellent! I may grab your pull request to start testing with while we wait for Darren to merge. Have you had good success with your changes?

Looks like there are new values that would need to be added to the MessageEventTypes enum. The types I notice at quick glance are initial_open, amp_click, amp_open, amp_initial_open.

If you'd like help just holler and I'd be happy to help plug them in.

zythra avatar Jun 10 '19 20:06 zythra

@jomargon Excellent! I may grab your pull request to start testing with while we wait for Darren to merge. Have you had good success with your changes?

Looks like there are new values that would need to be added to the MessageEventTypes enum. The types I notice at quick glance are initial_open, amp_click, amp_open, amp_initial_open.

If you'd like help just holler and I'd be happy to help plug them in.

We're using it in our projects and so far we haven't encountered any issues yet based on our use cases. I'll add the new MessageEventTypes tonight. Thanks for letting me know.

jomargon avatar Jun 12 '19 12:06 jomargon

@jomargon Excellent! I may grab your pull request to start testing with while we wait for Darren to merge. Have you had good success with your changes? Looks like there are new values that would need to be added to the MessageEventTypes enum. The types I notice at quick glance are initial_open, amp_click, amp_open, amp_initial_open. If you'd like help just holler and I'd be happy to help plug them in.

We're using it in our projects and so far we haven't encountered any issues yet based on our use cases. I'll add the new MessageEventTypes tonight. Thanks for letting me know.

Awesome, thanks!

I noticed there is also a value missing in the BounceClass enum (26, smart send suppression). I don't know how new that is, I hadn't noticed it in the API documentation until this morning.

zythra avatar Jun 12 '19 13:06 zythra

@zythra I've added the missing MessageEventType and BouncClass enum values

jomargon avatar Jun 13 '19 01:06 jomargon

@jomargon Awesome, thanks for sharing your implementation!

zythra avatar Jun 13 '19 13:06 zythra

Great! Thank you, @jomargon! Looks like pagination support is not implemented. MessageEventsQuery.Page=10 (/api/v1/events/message?page=10) doesn't work any more (not supported). https://developers.sparkpost.com/api/events/#events-pagination We should use ListMessageEventsResponse.Links.Next URL to request next page, but I can't find a way to create request using custom URL. I will implement it and publish soon.

kirilsi avatar Sep 06 '19 14:09 kirilsi

I have implemented custom request URL support for Message Events API to be used for pagination. Here is the pull request to ISSUE-182 branch: https://github.com/jomargon/csharp-sparkpost/pull/1

kirilsi avatar Sep 09 '19 09:09 kirilsi

Any chance for an update of this?

adamhathcock avatar Jul 11 '22 15:07 adamhathcock