1.5.3 • Published 4 years ago

confidentify-client-typescript v1.5.3

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

Conf·ident·ify client for TypeScript

This project provides a TypeScript client for the Conf·ident·ify APIs.

Build Status: Linux

Using the client

First, add the project as a npm dependency in your project:

npm install confidentify-client-typescript

Next, start coding against the packages confidentify-client-typescript.

Here's an example which assumes you have your account username/password in variables with corresponding names:

import { AuthApi, Configuration, ProcessApi } from 'confidentify-client-typescript';

const authApi = new AuthApi();
authApi.authPost({
        authRequest: {
            "username": username,
            "password": password
        }
    }).then(response => {
        const token = response.accessToken;
        const configuration = new Configuration({
            accessToken: "Bearer " + token,
        });
        const processApi = new ProcessApi(configuration);
        processApi.phonePost({
            phoneRequest: {
                records: [
                    {
                        country: "US",
                        phone: "800 FLOWERS"
                    }
                ]
            }
        }).then(response => {
            if (response.records) {
                console.log("E164 format for 1-800-FLOWERS: " + response.records[0].phoneE164);
            }
        });
    });
1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago