1.0.18 • Published 12 months ago

@userloop/api v1.0.18

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

Userloop

A TypeScript/JavaScript client for the Userloop API.

Installation

npm install @userloop/api

Usage

import Userloop from 'userloop';

const userloop = new Userloop('your-api-key');

// Emit an event
userloop
	.emit('event_id', { key: 'value' })
	.then((response) => console.log(response))
	.catch((error) => console.error(error));

API

Userloop(apiKey: string)

Creates a new Userloop instance.

emit(id: string, data?: Record<string, any>): Promise<any>

Emits an event to the Userloop API.

  • id: The event identifier.
  • data: Optional data associated with the event.

Returns a promise that resolves to the API response.

1.0.18

12 months ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.11

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago