Getting a subscriber by email (apiGetSubscriberByEmail)
Nutzen Sie diese Funktion, um die ID eines Empfängers anhand seiner E-Mail Adresse zu ermitteln.
Request
Name | Type | Example | Required | Comment |
---|---|---|---|---|
String | user@domain.com |
Response
stdClass Object ( [subsriberResponse] => stdClass Object ( [subscriberID] => 123456789 ) [status] => 200 )
Error Response
Code | Interpretation |
---|---|
404 | No valid email given. |
204 | No subscriber found. |
PHP5 Example
try{ $request = array( 'email'=> 'user@domain.com' ); $response=$client->apiGetSubscriberByEmail($request); } catch (SoapFault $exception) { echo ($exception->getMessage()); }