@shout-sdk/service-client

Shout service client.

Usage no npm install needed!

<script type="module">
  import shoutSdkServiceClient from 'https://cdn.skypack.dev/@shout-sdk/service-client';
</script>

README

@shout-sdk/service-client

A small client that interacts with the Shout Routing Service to retrieve information about all of Shout's services.

Install

npm install @shout-sdk/service-client

Example Usage

import { 
    ClientSoftwareInformation,
    ServiceUrlContainer, 
    ServiceInformation, 
    ServiceClient } from '@shout-sdk/service-client';

let serviceInfo : ServiceInformation;
serviceInfo = await ServiceClient.getServiceInformation('http://rs1.shout.loc:43202');

let serviceUrls : ServiceUrlContainer;
serviceUrls = serviceInfo.serviceUrls;

let softwareInfo : ClientSoftwareInformation;
softwareInfo = serviceInfo.softwareInformation;