Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-loops

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-loops

Loops Nuxt Module

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64
increased by3100%
Maintainers
0
Weekly downloads
 
Created
Source

Loops Nuxt Module

This Nuxt module makes it easy to add the Loops JavaScript SDK to your Nuxt project.

Installation

You can install the package from npm:

npm install nuxt-loops

You will need a Loops API key to use the module.

In your Loops account, go to the API Settings page and click Generate key.

Copy this key and save it in your application code (for example as LOOPS_API_KEY in an .env file).

Then add nuxt-loops to your modules list and add a reference to your API key:

export default defineNuxtConfig({
  modules: ['nuxt-loops'],
  loops: {
    apiKey: process.env.LOOPS_API_KEY
  }
});

Usage

To use the module, import loops from the request context.

Then call one of the SDK methods. Read through the JS SDK docs for more details.

export default defineEventHandler(async (event) => {
  const { loops } = event.context;

  const response = await loops.updateContact("hello@gmail.com", {
    firstName: "Bri",
    lastName: "Chambers",
  })
});

See the API documentation to learn more about rate limiting and error handling.

FAQs

Package last updated on 17 Oct 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