@voypost/rest-api-client

Voypost API Client

Usage no npm install needed!

<script type="module">
  import voypostRestApiClient from 'https://cdn.skypack.dev/@voypost/rest-api-client';
</script>

README

api-client

Getting started

import { createApiClient } from '@voypost/rest-api-client';

export default createApiClient({
  clientId: 'xxx',
  clientSecret: 'yyy',
  baseUrl: 'https://foo.api.voypost.com/',
  audience: 'https://foo.api.voypost.com/',
  tokenBaseUrl: 'https://voypost.auth0.com/',
  scopes: ['users:read'],
});