-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
The next 2 endpoints are not implemented:
- Querying Responses: http://documentation.emarsys.com/resource/developers/endpoints/email/query-responses/
- Querying Responses Result: http://documentation.emarsys.com/resource/developers/endpoints/email/query-responses-result/
PHP code to implement then is(I don't have access to create a pull request):
/** Returns a list of all contacts who responsed a certain way during the specified time frame..
*
* @param string $type 'opened'|'not_opened'|'received'|'clicked'|'not_clicked' (a link in the email)
* |'bounced'|'hard_bounced'|'soft_bounced'|'block_bounced'
* @param string $start_date
* @param string $end_date
* @return Response
*/
public function getResponses($type, $start_date, $end_date)
{
return $this->send(HttpClient::POST, 'email/responses', array('type'=>$type, 'start_date'=>$start_date, 'end_date'=>$end_date));
}
/**
* returns report, requested by getResponses()
*
* @param $query_id
*
* @return Response
* @throws ServerException
*/
public function getResponsesReport($query_id){
return $this->send(HttpClient::GET, sprintf('email/responses/%s', $query_id));
}