@adobe/aio-sdk-core

3.0.0 • Public • Published

@adobe/aio-sdk-core

Version Downloads/week Node.js CI License Codecov Coverage

This is the Adobe I/O Core SDK. This contains:

SDK Health

The module can be added to your project with:

npm install @adobe/aio-sdk-core --save

Here is a snippet:

const CoreSdk = require('@adobe/aio-sdk-core')
// OR ...
const { Config, Errors, TVMClient, Logger, HttpClient } = require('@adobe/aio-sdk-core')

// set a Config key value
CoreSdk.Config.set('my.token', 1234)

// get all stored config values
CoreSdk.Config.get()

// create your own Error wrapper here, see @adobe/aio-lib-core-error docs
const { AioCoreSDKError, AioCoreSDKErrorWrapper } = CoreSdk.Errors

// init the TVM client for further use
const tvm = await CoreSdk.TVMClient.init({ ow: { auth: '<myauth>', namespace: '<mynamespace>' } })

// create a Logger
const myAppLogger = CoreSdk.Logger('MyApp')
myAppLogger.info('Hello, Dave.')

// create own reference variable to call HttpClient for exponential backoff
const httpClient = CoreSdk.HttpClient
const response = await httpClient.exponentialBackoff('url', {method: 'GET'})

Explore

goto API

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @adobe/aio-sdk-core

Weekly Downloads

1,990

Version

3.0.0

License

Apache-2.0

Unpacked Size

39.3 kB

Total Files

19

Last publish

Collaborators

  • dylandepass
  • djaeggi
  • adobehalls
  • fullcolorcoder
  • marbec
  • tripod
  • garthdb
  • lazd
  • adobe-admin
  • patrickfulton
  • trieloff
  • shazron
  • krisnye
  • dcpfsdk
  • natebaldwin
  • devongovett
  • aspro83
  • symanovi
  • dpfister
  • stefan-guggisberg
  • korra
  • rofe
  • kptdobe