Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.84 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.84 KB

Lookup

(lookup())

Overview

Retrieve up-to-date metadata about a specific phone number

Available Operations

  • lookup - Look up for phone number

lookup

Look up for phone number

Example Usage

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
        }
    }
}

Parameters

Parameter Type Required Description
customerUuid String ✔️ N/A
phoneNumber String ✔️ N/A

Response

LookupResponse

Errors

Error Type Status Code Content Type
models/errors/ErrorResponse1 400 application/json
models/errors/SDKError 4XX, 5XX */*