We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8773a commit cded850Copy full SHA for cded850
1 file changed
src/Drewm/MailChimp.php
@@ -31,6 +31,15 @@ public function __construct($api_key)
31
list(, $datacentre) = explode('-', $this->api_key);
32
$this->api_endpoint = str_replace('<dc>', $datacentre, $this->api_endpoint);
33
}
34
+
35
+ /**
36
+ * Validates MailChimp API Key
37
+ */
38
+ public function validateApiKey()
39
+ {
40
+ $request = $this->call('helper/ping');
41
+ return !empty($request);
42
+ }
43
44
/**
45
* Call an API method. Every request needs the API key, so that is added automatically -- you don't need to pass it in.
0 commit comments