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

iubenda-consent-solution-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iubenda-consent-solution-api

API client to implement Iubenda Consent Solution in backend service

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

API client to implement Iubenda Consent Solution in backend service.

Install

npm install iubenda-consent-solution-api

This library implements all methods described in Official Iubenda Guide.

Usage

Instance client

import {IubendaConsentSolution} from 'iubenda-consent-solution-api';

const validApiKey = 'YOUR-VALID-IUBENDA-API-KEY';
const client = new IubendaConsentSolution({apiKey: validApiKey});

Request response error

if the request returns an error you will get an object like the following:

interface ResponseError {
  error: boolean;
  status: number;
  message: string;
}

Consents

Get Consents

Look Iubenda (Official Guide)

const result = await client.getConsents();

Look Iubenda (Official Guide)

const id = 'consent-id'
const result = await client.getConsent(id);

Look Iubenda (Official Guide)

const consent: ConsentExtended = {};//Set your fields
const result = await client.createConsent(consent);

Subjects

Get Subjects

Look Iubenda (Official Guide)

const result = await client.getSubjects();
Get Subject

Look Iubenda (Official Guide)

const id = 'subject-id'
const result = await client.getSubject(id);
Create Subject

Look Iubenda (Official Guide)

const subject: Subject = {};//Set your fields
const result = await client.createSubject(subject);
Update Subject

Look Iubenda (Official Guide)

const id = 'subject-id'
const subject: Subject = {};//Set your fields
const result = await client.updateSubject(subject, id);

Keywords

FAQs

Package last updated on 03 Jan 2022

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