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

Responses end point is not implemented. #32

Open
pirvulescu opened this issue Dec 2, 2016 · 2 comments
Open

Responses end point is not implemented. #32

pirvulescu opened this issue Dec 2, 2016 · 2 comments

Comments

@pirvulescu
Copy link

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));
}
@tim-bezhashvyly
Copy link
Contributor

Feel free to add a pull request.

@pirvulescu
Copy link
Author

I have no access to add a pull request :(

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

No branches or pull requests

3 participants