1.0.7 • Published 5 years ago

@shout-sdk/shout-client v1.0.7

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

@shout-sdk/shout-client

Client for interacting Shout's various services. Provides automatic handling of service routing and session refreshing as well as generic serialization/deserialization of TypeScript classes.

Install

npm install @shout-sdk/shout-client

Example Usage

import { ShoutClient, AuthorizedShoutClient, Service } from '@shout-sdk/shout-client';

const deserializedResult = await ShoutClient.post<GetCountriesResponse>(
    Service.Uas, 
    PublicUrls.Uas.PhoneNumber.GetCountries);

// Now usable with GetCountriesResponse typings
console.log(getCountriesResponse.countries)