All URIs are relative to https://api.messente.com/v1
Method | HTTP request | Description |
---|---|---|
fetchInfo | POST /hlr/sync | Requests info about phone numbers |
SyncNumberLookupSuccess fetchInfo(numbersToInvestigate)
Requests info about phone numbers
// Import classes:
import com.messente.ApiClient;
import com.messente.ApiException;
import com.messente.Configuration;
import com.messente.auth.*;
import com.messente.models.*;
import com.messente.api.NumberLookupApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.messente.com/v1");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
NumberLookupApi apiInstance = new NumberLookupApi(defaultClient);
NumbersToInvestigate numbersToInvestigate = new NumbersToInvestigate(); // NumbersToInvestigate | Numbers for lookup
try {
SyncNumberLookupSuccess result = apiInstance.fetchInfo(numbersToInvestigate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NumberLookupApi#fetchInfo");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
numbersToInvestigate | NumbersToInvestigate | Numbers for lookup |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Info about phone numbers returned | - |
400 | Invalid request | - |
401 | Unauthorized | - |
402 | Failed crediting | - |