Socket
Socket
Sign inDemoInstall

@aws-sdk/client-personalize-events

Package Overview
Dependencies
Maintainers
5
Versions
392
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-personalize-events

AWS SDK for JavaScript Personalize Events Client for Node.js, Browser and React Native


Version published
Maintainers
5
Created

What is @aws-sdk/client-personalize-events?

@aws-sdk/client-personalize-events is an AWS SDK client for Amazon Personalize Events. It allows developers to record events that are used to train and update machine learning models for personalized recommendations.

What are @aws-sdk/client-personalize-events's main functionalities?

PutEvents

The PutEvents feature allows you to record events such as user interactions with items. These events are used to train and update machine learning models for personalized recommendations.

const { PersonalizeEventsClient, PutEventsCommand } = require('@aws-sdk/client-personalize-events');

const client = new PersonalizeEventsClient({ region: 'us-west-2' });

const params = {
  sessionId: 'exampleSessionId',
  trackingId: 'exampleTrackingId',
  userId: 'exampleUserId',
  eventList: [
    {
      eventType: 'exampleEventType',
      sentAt: new Date(),
      properties: JSON.stringify({
        itemId: 'exampleItemId'
      })
    }
  ]
};

const command = new PutEventsCommand(params);

client.send(command).then(
  (data) => console.log(data),
  (error) => console.error(error)
);

Other packages similar to @aws-sdk/client-personalize-events

FAQs

Package last updated on 18 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc