5.0.30 • Published 6 days ago

@keiser/metrics-sdk-sso-typescript v5.0.30

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

@keiser/metrics-sdk-sso-typescript@5.0.30

Project

This SDK facilitates communication between a client system (ie: phone app, website, server) and Keiser Metrics. The SDK is written in TypeScript and supports both browser and NodeJS platforms.

Installation

Navigate to the folder of your consuming project and install with npm:

npm install @keiser/metrics-sdk-sso-typescript@5.0.30 --save

Getting Started

Please follow the installation instruction and execute the following JS code:

import { MetricsSSOApi } from '@keiser/metrics-sdk-sso-typescript';

var api = new MetricsSSOApi()

let body:MetricsSSOApiAcceptedTermsVersionShowRequest = {
  // number (optional)
  userId: 8.14,
  // string (optional)
  apiVersion: apiVersion_example,
};

try {
  const data = await api.acceptedTermsVersionShow(body);
  console.log('API called successfully. Returned data: ' + data);
} catch (error) {
  console.error(error);
}

Documentation for API Endpoints

All URIs are relative to https://metrics-api-v3.keiser.com/api

MethodHTTP requestDescription
acceptedTermsVersionShowGET /auth/accepted-terms-versionShow a user accepted terms version
acceptedTermsVersionUpdatePUT /auth/accepted-terms-versionUpdate a user accepted terms version
authConnectPOST /auth/connectConnect a user to auth using email and password
authElevatePOST /auth/elevateElevate user session to Global ACL
authExchangeFulfillmentPOST /auth/exchange/fulfillmentExchanges an authorization token for access and refresh tokens
authExchangeInitPOST /auth/exchange/initGenerate an exchange token
authFacilityWelcomeFulfillmentPOST /auth/facility/welcome/fulfillmentFulfills a facility\'s user creation process
authKeepAlivePOST /auth/keep-aliveKeeps a user\'s tokens alive
authLoginPOST /auth/loginLogin a user using email and password
authLogoutPOST /auth/logoutLogout user by blacklisting token
authResetFulfillmentPOST /auth/reset/fulfillmentFulfills a user\'s credential reset request
authResetRequestPOST /auth/reset/requestRequest to reset a user\'s credentials
authSetFacilityPOST /auth/set-facility/{facilityId}Sets the target facility for a user
authUpdatePOST /auth/updateUpdate a user\'s credentials
authUserInitPOST /auth/user/initInitialize a new user
authUserInitFulfillmentPOST /auth/user/init/fulfillmentFulfill a new user initialization
authValidateReturnRouteGET /auth/validate/return-routeValidates redirect url for known good routes
basicCredentialCreatePOST /auth/basic-credentialCreate auth using email and password for user
basicCredentialUpdatePOST /auth/basic-credential/updateUpdate a user\'s credentials
emailAddressValidationFulfillmentPOST /user/email-address/validation-fulfillment/{validationToken}Fulfills a user\'s email validation process
heightMeasurementCreatePOST /user/height-measurementCreate a user height measurement
oauthAuthorizePOST /oauth/authorizeAuthorizes a third party application
oauthDeauthorizeDELETE /oauth/deauthorizeDeauthorizes an oauth user
oauthInitiatePOST /oauth/initiate/{service}Initiates OAuth access request and return parameters
oauthServiceDeleteDELETE /oauth/service/{id}Delete a user\'s oauth service connection
oauthServiceListGET /oauth/service/listList a user\'s oauth service connections
oauthServiceShowGET /oauth/serviceShow a user\'s oauth service connection
oauthServiceSubscriptionCreatePOST /oauth/service/subscriptionCreate a oauth service subscription
oauthServiceSubscriptionDeleteDELETE /oauth/service/subscription/{id}Delete a oauth service subscription
oauthServiceSubscriptionListGET /oauth/service/subscription/listList oauth service subscriptions
oauthServiceSubscriptionShowGET /oauth/service/subscriptionShow an oauth service subscription
oauthTokenGET /oauth/tokenReturns tokens for third party oauth
profileUpdatePUT /user/profileUpdate a user profile
weightMeasurementCreatePOST /user/weight-measurementCreate a user weight measurement

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

Copyright and License

Copyright © 2020 Keiser Corporation.

The Keiser Metrics SDK source code and distributed package are made available through the MIT license.

Using any of the APIs made available through the Keiser Metrics SDK to communicate with Keiser Metrics make you subject to the following agreements. Please read all documents in their entirety as they govern your use of the APIs and Keiser Metrics servers.

5.0.30

6 days ago

5.0.29

15 days ago

5.0.28

1 month ago

5.0.27

1 month ago

5.0.26

4 months ago

5.0.25

4 months ago

5.0.24

4 months ago