@shout-sdk/shout-client
v1.0.7
Published
Shout Client.
Downloads
4
Readme
@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)