3.0.0 • Published 4 months ago
@adobe/aio-sdk-core v3.0.0
@adobe/aio-sdk-core
This is the Adobe I/O Core SDK. This contains:
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.
3.0.0
4 months ago
2.0.1-pre.2024-01-08.sha-249b4f64
4 months ago
2.0.1
1 year ago
2.0.0
2 years ago
1.4.0-pre.2022-07-22.sha-54910c8e
2 years ago
1.4.0
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
5 years ago
0.0.1
5 years ago