Skip to content

Commit

Permalink
BIZDIR-140 add email post functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Anderson committed Nov 19, 2015
1 parent 3311e6f commit 5515ec9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Credibility/DandB/DandB.php
Expand Up @@ -392,6 +392,25 @@ public function addSingleProductUserEntitlement($userToken, Models\DandBOrder $o
));
}

/**
* @param $userEmail User email address of the recipient of.
* @param $displayName Name of the recipient of the email.
* @param $folderName The Responsys folder of this email.
* @param $campaignName The Responsys campaign name of this email.
* @param $messageId Message identifier used for tracking this email.
* @param $options array of data required by the Responsys template.
* @return Response
*/
public function postEmail($userEmail, $displayName, $folderName, $campaignName, $messageId, array $options) {
return $this->requester->runPost('/v1.1/email', array(
'user_email' => $userEmail,
'display_name' => $displayName,
'folder_name' => $folderName,
'campaign_name' => $campaignName,
'message_id' => $messageId,
'options' => json_encode($options),
));
}

/**
* Returns new user token based on refresh token from
Expand Down

0 comments on commit 5515ec9

Please sign in to comment.