New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transmission.get no longer supported? #47

Closed
mstratman opened this Issue Jan 6, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@mstratman

mstratman commented Jan 6, 2018

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:

Transmission.get("102258889940193105")
#=> %Transmission{campaign_id: "",
content: %{template_id: "inline", template_version: 0,
use_draft_template: false}, description: "",
generation_end_time: "2016-01-14T12:52:05+00:00",
generation_start_time: "2016-01-14T12:52:05+00:00", id: "48215348926834924",
metadata: "", num_failed_gen: 0, num_generated: 2, num_rcpts: 2,
options: %{click_tracking: true, conversion_tracking: "", open_tracking: true},
rcp_list_total_chunks: nil, rcpt_list_chunk_size: 100, recipients: :required,
return_path: "ewan.dennis@cloudygoo.com", state: "Success",
substitution_data: ""}

@avigoldman

This comment has been minimized.

Show comment
Hide comment
@avigoldman

avigoldman Jan 6, 2018

Member

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.

Member

avigoldman commented Jan 6, 2018

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

This comment has been minimized.

Show comment
Hide comment
@mstratman

mstratman Jan 6, 2018

Got it. Thank you!

mstratman commented Jan 6, 2018

Got it. Thank you!

@mstratman mstratman closed this Jan 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment