Service client for communication with classical Humany projections.
Package Exports
@humany/serviceclient
@humany/serviceclient/lib-esm/index.js
@humany/serviceclient/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@humany/serviceclient) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@humany/serviceclient
The Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.
Projection URL Format
The standard format of a Projection URL consists of the root application url followed by the projection name.
A connection key (part of dialog) to give feedback on.
string
feedbackType
Type of feedback to give (Positive or Negative).
string
Accessing the Service Client from a plugin
For implementations running version 4 you can author a plugin and access the current Service Client through the container under the key 'matchingClient'. The value must be resolved asynchronously as in the example below.
import{ Plugin }from'@humany/widget-core';classMyPluginextendsPlugin{initialize(){this.container.getAsync('matchingClient').then((matchingClient)=>{// use 'matchingClient' here});}}