All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.telesign.PhoneIdClient Maven / Gradle / Ivy

Go to download

The TeleSign Java SDK is a Java library that provides an interface to TeleSign Web Services. TeleSign Web Services conform to the REST Web Service Design Model. Services are exposed as URI-addressable resources through the set of RESTful procedures in our TeleSign REST API.

There is a newer version: 2.3.1
Show newest version
package com.telesign;

import java.io.IOException;
import java.net.Proxy;
import java.security.GeneralSecurityException;
import java.util.Map;

/**
 * A set of APIs that deliver deep phone number data attributes that help optimize the end user
 * verification process and evaluate risk.
 */
public class PhoneIdClient extends RestClient {

    private static final String PHONEID_RESOURCE = "/v1/phoneid/%s";

    public PhoneIdClient(String customerId, String secretKey) {
        super(customerId, secretKey);
    }

    public PhoneIdClient(String customerId, String secretKey, String apiHost) {
        super(customerId, secretKey, apiHost);
    }

    public PhoneIdClient(String customerId,
                         String secretKey,
                         String apiHost,
                         Long connectTimeout,
                         Long readTimeout,
                         Long writeTimeout,
                         Proxy proxy,
                         final String proxyUsername,
                         final String proxyPassword) {
        super(customerId, secretKey, apiHost, connectTimeout, readTimeout, writeTimeout, proxy, proxyUsername, proxyPassword);
    }

    /**
     * The PhoneID API provides a cleansed phone number, phone type, and telecom carrier information to determine the
     * best communication method - SMS or voice.
     * 

* See https://developer.telesign.com/docs/phoneid-api for detailed API documentation. */ public TelesignResponse phoneid(String phoneNumber, Map params) throws IOException, GeneralSecurityException { return this.post(String.format(PHONEID_RESOURCE, phoneNumber), params); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy