# @adobe/asset-compute-events-client

> Adobe Asset Compute I/O Events Javascript Client

Latest version **1.2.1** (published 2023-11-02) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @adobe/asset-compute-events-client
pnpm add @adobe/asset-compute-events-client
yarn add @adobe/asset-compute-events-client
bun add @adobe/asset-compute-events-client
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2023-11-02 |
| First published | 2020-04-29 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 51.2 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Adobe Inc. |
| Maintainers | adobehalls, fullcolorcoder, marbec, tripod, garthdb, lazd, adobe-admin, patrickfulton, trieloff, shazron, krisnye, dcpfsdk, natebaldwin, devongovett, aspro83, symanovi, dpfister, stefan-guggisberg, korra, rofe, kptdobe |

## Links

- npm: https://www.npmjs.com/package/@adobe/asset-compute-events-client
- Repository: https://github.com/adobe/asset-compute-events-client
- Homepage: https://github.com/adobe/asset-compute-events-client#readme
- Issues: https://github.com/adobe/asset-compute-events-client/issues
- npm.io page: https://npm.io/package/@adobe/asset-compute-events-client

## Dependencies (5)

- [form-data](https://npm.io/package/form-data.md) ^2.5.1
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1
- [nodejs-base64](https://npm.io/package/nodejs-base64.md) ^2.0.0
- [http-link-header](https://npm.io/package/http-link-header.md) ^1.0.4
- [@adobe/node-fetch-retry](https://npm.io/package/@adobe/node-fetch-retry.md) ^2.2.0

## Recent versions

- 1.2.1 (latest) — 2023-11-02
- 1.2.0 — 2023-02-22
- 1.1.2 — 2022-03-29
- 1.1.1 — 2022-01-31
- 1.1.0 — 2021-11-02
- 1.0.1 — 2020-05-05
- 1.0.0 — 2020-04-29

## README

# ⚠️ DISCLAIMER ⚠️
This is an internal project. It is only meant to be used by [asset-compute-commons](https://github.com/adobe/asset-compute-commons/blob/master/package.json#L12).

For Adobe App Builder applications and other components needing to use I/O Events, please use the [aio-lib-events](https://github.com/adobe/aio-lib-events) library.

---

Adobe Asset Compute I/O Events Javascript Client
==================================

[![Version](https://img.shields.io/npm/v/@adobe/asset-compute-events-client.svg)](https://npmjs.org/package/@adobe/asset-compute-events-client)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![Travis](https://travis-ci.com/adobe/asset-compute-events-client.svg?branch=master)](https://travis-ci.com/adobe/asset-compute-events-client)

This is an internal library of the Adobe Asset Compute SDK.
A simple Javascript/NodeJS client for using [Adobe I/O Events](https://www.adobe.io/apis/cloudplatform/events/documentation.html).

Installation
------------

```
npm install @adobe/asset-compute-events-client
```

Usage
-----

### Sending an event

```javascript
const { AdobeIOEvents } = require('@adobe/asset-compute-events-client');

// setup using necessary credentials
const ioEvents = new AdobeIOEvents({
    // access token from an integration/technical account with I/O Events entitlement
    accessToken: "ey...",
    // organization sending/receiving events
    orgId: "6EEF12345678901234567890@AdobeOrg",

    defaults: {
        providerId: "my_event_provider_id"
    }
});

// send an event
return ioEvents.sendEvent({
    code: "my_event_type",
    payload: {
        hello: "world",
        date: new Date()
    }
});

```

### Receiving events

```javascript
const { AdobeIOEvents, AdobeIOEventEmitter } = require('@adobe/asset-compute-events-client');

// setup using necessary credentials
const ioEvents = new AdobeIOEvents({
    // access token from an integration/technical account with I/O Events entitlement
    accessToken: "access...",
});

// receiving events
const ioEventEmitter = new AdobeIOEventEmitter(ioEvents, 'http://journal-url');
ioEventEmitter.on('event', (event) => {
    // handle event
})
ioEventEmitter.on('error', (error) => {
    // report error
})
```

### Links
IO Events API: https://www.adobe.io/apis/experienceplatform/events/ioeventsapi.html

### Contributing
Contributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.

### Licensing
This project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.

---
_Source: https://npm.io/package/@adobe/asset-compute-events-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
