Socket
Book a DemoInstallSign in
Socket

@adobe/aio-sdk-core

Package Overview
Dependencies
Maintainers
22
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/aio-sdk-core

Module that contains all the Adobe I/O Core SDKs

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
22
Created
Source

@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.

FAQs

Package last updated on 11 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts