Skip to content

Responses end point is not implemented. #32

@pirvulescu

Description

@pirvulescu

The next 2 endpoints are not implemented:

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));
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions