SparkPost / elixir-sparkpost

SparkPost client library for Elixir https://developers.sparkpost.com
Apache License 2.0
44 stars 14 forks source link

Transmission.get no longer supported? #47

Closed mstratman closed 6 years ago

mstratman commented 6 years ago

Version: using 0.5.1 from hex.

Actual:

iex(103)> SparkPost.Transmission.get("156823913470671414")
%SparkPost.Endpoint.Error{errors: [%{message: "You may use the Message Events API to retrieve event data for your transmission. For example https://api.sparkpost.com/api/v1/message-events?from=2018-01-05T03:00&transmission_ids=156823913470671414"}],
 results: nil, status_code: 404}

Expected: Results like the following: https://github.com/SparkPost/elixir-sparkpost/blob/5f4382830fc1059a158be24e2897d5f7b3bd3c73/lib/transmission.ex#L140-L150

avigoldman commented 6 years ago

Hey @mstratman 👋 The transmission get endpoint is only for retrieving scheduled transmissions. If you are trying to get info about the emails that were sent, you can query the message events API.

mstratman commented 6 years ago

Got it. Thank you!