All URIs are relative to https://api.messente.com/v1, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
fetchInfo() | POST /hlr/sync | Requests info about phone numbers |
fetchInfo($numbersToInvestigate): \Messente\Api\Model\SyncNumberLookupSuccess
Requests info about phone numbers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Messente\Api\Api\NumberLookupApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$numbersToInvestigate = {"numbers":["+37251000000","+37251000001"]}; // \Messente\Api\Model\NumbersToInvestigate | Numbers for lookup
try {
$result = $apiInstance->fetchInfo($numbersToInvestigate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NumberLookupApi->fetchInfo: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
numbersToInvestigate | \Messente\Api\Model\NumbersToInvestigate | Numbers for lookup |
\Messente\Api\Model\SyncNumberLookupSuccess
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]