Skip to content
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

Updating examples #139

Merged
merged 7 commits into from
Aug 25, 2016
Merged

Updating examples #139

merged 7 commits into from
Aug 25, 2016

Conversation

avigoldman
Copy link
Contributor

Fixed sending with recipient lists
Added template and recipient list examples

@@ -16,7 +16,9 @@ public function __construct(SparkPost $sparkpost)
*/
public function post($payload = [], $headers = [])
{
$payload = $this->formatPayload($payload);
if (isset($payload['recipients']) && !isset($payload['recipients']['list_id'])) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking we should add a test to cover this

@colestrode
Copy link

looks great :shipit:

@avigoldman avigoldman merged commit 1bbefef into master Aug 25, 2016
@avigoldman avigoldman deleted the updating-examples branch August 25, 2016 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants