(lookup)
Retrieve up-to-date metadata about a specific phone number
- lookup - Look up for phone number
Look up for phone number
declare(strict_types=1);
require 'vendor/autoload.php';
use Ding\DingSDK;
$security = 'YOUR_API_KEY';
$sdk = DingSDK\Ding::builder()->setSecurity($security)->build();
$response = $sdk->lookup->lookup(
customerUuid: '69a197d9-356c-45d1-a807-41874e16b555',
phoneNumber: '<value>'
);
if ($response->lookupResponse !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
customerUuid |
string | ✔️ | N/A |
phoneNumber |
string | ✔️ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
Errors\SDKException | 4XX, 5XX | */* |