Client Library
Usage
Our JavaScript Client Library is designed to allow users of your Web or Mobile application to connect their Health Insurance accounts with your Application.
To get up and running, you can simply copy and paste the JavaScript snippets below, and run it in isDemo mode today. You can use the provided callbacks to customize the look, feel, and overall experience for your users.
Detailed Client-Usage Docs
We highly suggest taking a look at our Detailed Client-Usage Docs on github while attempting to implement the SDK.
Other Useful Documentation Links
Quickstart
Clicking on this card brings you to the quickstart page
FAQ
Clicking on this card brings you to the FAQ page
Error Documentation
Clicking on this card brings you to the Error Documentation page
SDK Flow
Clicking on this card brings you to the SDK Flow page
JavaScript Client
Source Code
You can find the source code to our JavaScript Client here
NPM Example (Recommended)
CDN Example
As of SDK version 0.4.7 the CDN provider is now versioned and will support up to 10 minor versions behind.
- Importing the various versions of the SDK is handled in
src
attribute on your script taghttps://app.tpastream.com/static/js/sdk.js
Grabs the latest version of the SDKhttps://app.tpastream.com/static/js/sdk-v-<VersionNumber>.js
For a specific version. Examples below.https://app.tpastream.com/static/js/sdk-v-0.4.7.js
SDK Client Usage Docs
We highly suggest taking a look at our Detailed Client-Usage Docs on github while attempting to implement the SDK.
There you will find explanations for all of the various callbacks in the example above as well as explanations for the various configuration paramters.
Android Example
In Android, you can implement the JavaScript SDK by creating an html file in your assets folder that loads the SDK, then loading it in a WebView. Here’s a simple example implementation in Java.
iOS Example
In iOS, you can implement the JavaScript SDK by creating a directory in your project (“stream-connect” in the below example), and putting an html file in it (index.html in the below example) that loads the SDK. You can then load it into a WKWebView. Here’s a simple example implementation in Objective-C.
Change Log
v0.4.8 (Latest)
- Add individual endpoints for the following: payer and terms of service
- Seperate the versions of the api and create a version manager.
- Drastically improve initial endpoint loadtime by bringing down less info.
v0.4.7
- Add versioning to the CDN provider
- Append version to all request headers for underlying api to read.