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

update fetch_subscribers to accept params #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
batch unsubscribe - todo pr
mticciati committed Nov 6, 2018
commit 3d01becab570e0ffe955971a88a872fa7466a50c
15 changes: 15 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
@@ -233,6 +233,21 @@ public function unsubscribe_subscriber($params)
return $this->make_request("$this->account_id/subscribers/$subscriber_id/unsubscribe", $params, self::POST);
}

/**
* Sends a request to add/update a batch (up to 1000) of subscribers
*
* @param array $params
* @return \Drip\ResponseInterface
*/
public function unsubscribe_subscribers($params)
{
return $this->make_request(
"$this->account_id/unsubscribes/batches",
$params,
self::POST
);
}

/**
*
* This calls POST /:account_id/tags to add the tag. It just returns some status code no content