Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 2.46 KB

README.md

File metadata and controls

56 lines (39 loc) · 2.46 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

using DingSDK;
using DingSDK.Models.Requests;
using System.Collections.Generic;
using DingSDK.Models.Components;

var sdk = new Ding(security: new Security() {
    APIKey = "YOUR_API_KEY",
});

var res = await sdk.Lookup.LookupAsync(
    customerUuid: "69a197d9-356c-45d1-a807-41874e16b555",
    phoneNumber: "<value>",
    type: new List<DingSDK.Models.Requests.Type>() {
        DingSDK.Models.Requests.Type.Cnam,
    }
);

// handle response

Parameters

Parameter Type Required Description
CustomerUuid string ✔️ N/A
PhoneNumber string ✔️ N/A
Type List<Models.Requests.Type> N/A

Response

Models.Requests.LookupResponse

Errors

Error Type Status Code Content Type
DingSDK.Models.Errors.ErrorResponse 400 application/json
DingSDK.Models.Errors.SDKException 4XX, 5XX */*