(lookup())
Retrieve up-to-date metadata about a specific phone number
- lookup - Look up for phone number
Look up for phone number
package hello.world;
import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse1;
import live.ding.dingsdk.models.operations.LookupResponse;
import live.ding.dingsdk.models.shared.Security;
public class Application {
public static void main(String[] args) throws ErrorResponse1, Exception {
Ding sdk = Ding.builder()
.security(Security.builder()
.apiKey("YOUR_API_KEY")
.build())
.build();
LookupResponse res = sdk.lookup().lookup()
.customerUuid("69a197d9-356c-45d1-a807-41874e16b555")
.phoneNumber("<value>")
.call();
if (res.lookupResponse().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description |
---|---|---|---|
customerUuid |
String | ✔️ | N/A |
phoneNumber |
String | ✔️ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ErrorResponse1 | 400 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |