3.15.5 • Published 9 months ago

@borneodata/borneo-client-auth-provider v3.15.5

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

@borneodata/borneo-client-auth-provider

Auth token provider for Borneo Client SDK

Installing

To install the this package, simply add or install using your favorite package manager:

  • npm install @borneodata/borneo-client-auth-provider
  • yarn add @borneodata/borneo-client-auth-provider

Getting Started

This SDK is used along with @borneodata/borneo-client SDK for authorization.

Usage

To send a request using @borneodata/borneo-client and an example command:

import { BorneoClient, DescribeCatalogResourceCommand } from '@borneodata/borneo-client';
import { BorneoAuthProvider } from '@borneodata/borneo-client-auth-provider';

async function getData() {
  const authProvider = await BorneoAuthProvider.fromConfigFile(`./Borneo-Service-Account-Token.json`);
  const client = new BorneoClient({
    endpoint: authProvider.getApiEndpoint(),
    apiKey: authProvider.getApiKey()
  });
  const input = {
    resourceId: '1bea4d02-8ce7-11ee-942f-3c7d0a1cd55d'
  };
  const cmd = new DescribeCatalogResourceCommand(input)
  const data = await client.send(cmd)
  
  // The data is returned here and can be further processed.
  console.log(data)
  return data
}

getData()

Config

const config = {
  clientId: 'STRING_VALUE', /* required */
  region: 'STRING_VALUE', /* required */
  token: 'STRING_VALUE', /* required */
  apiEndpoint: 'STRING_VALUE', /* required */
  secret: 'STRING_VALUE'
}

API Documentation

More API documentation is here at https://<my-stack>/docs/api

License

This SDK is distributed under the Apache License, Version 2.0.

3.15.5

9 months ago

3.15.3

9 months ago

3.15.2

9 months ago

3.15.0

9 months ago

3.15.1

9 months ago

3.14.3

10 months ago

3.14.2

10 months ago

3.14.1

11 months ago

3.13.2

1 year ago

3.12.3

1 year ago

3.14.0

11 months ago

3.13.1

1 year ago

3.12.2

1 year ago

3.13.4

12 months ago

3.12.5

1 year ago

3.13.3

12 months ago

3.12.4

1 year ago

3.13.0

1 year ago

3.12.1

1 year ago

3.12.0

1 year ago

3.11.6

1 year ago

3.11.5

1 year ago

3.11.1

1 year ago

3.11.0

1 year ago

3.10.5

1 year ago

3.10.2

1 year ago

3.10.1

1 year ago

3.10.0

1 year ago

3.9.5

1 year ago

3.9.1

1 year ago

3.9.0-alpha-7

2 years ago

3.9.0-alpha-6

2 years ago

3.9.0-alpha-5

2 years ago

3.9.0-alpha-4

2 years ago

3.9.0-alpha-3

2 years ago

3.9.0-alpha-2

2 years ago

3.9.0-alpha

2 years ago