@shout-sdk/shout-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

@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)

Readme

Keywords

none

Package Sidebar

Install

npm i @shout-sdk/shout-client

Weekly Downloads

1

Version

1.0.7

License

none

Unpacked Size

38.3 kB

Total Files

28

Last publish

Collaborators

  • daniel-shouts
  • tom-shout
  • karl-shout