Skip to content

Commit e49aaf0

Browse files
committed
Adds subscriberHash method
1 parent c2fe997 commit e49aaf0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/MailChimp.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function __construct($api_key)
3232
list(, $datacentre) = explode('-', $this->api_key);
3333
$this->api_endpoint = str_replace('<dc>', $datacentre, $this->api_endpoint);
3434
}
35+
36+
public function subscriberHash($email)
37+
{
38+
return md5(strtolower($email));
39+
}
3540

3641
public function delete($method, $args=array(), $timeout=10)
3742
{

0 commit comments

Comments
 (0)