Socket
Book a DemoInstallSign in
Socket

mojesouhlasy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mojesouhlasy

0.0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

Mojesouhlasy.cz

Installation

Add this line to your application's Gemfile:

gem 'mojesouhlasy'

Configuration

Create file in config/initializers/mojesouhlasy.rb with this content:

Mojesouhlasy::Core.config = {
  endpoint: 'https://mojesouhlasy.cz',
  api_token: '' #get this token at Mojesouhlasy.cz
}

Or you can generate this config file by running rails g mojesouhlasy in console.

Using

Mojesouhlasy::Users.create_user('email1@example.com']) #create single user and send registration email. Respond with user id.
Mojesouhlasy::Users.import(['email1@example.com', 'email2@example.com']) #imports users and send registration emails.
Mojesouhlasy::Users.anonymize('email@example.com') #anonymize user with email and sends email to him.
Mojesouhlasy::Users.is_anonymized('email@example.com') #check if user with this email is anonymized.
Mojesouhlasy::Users.anonymized #get all anonymized users.
Mojesouhlasy::Users.not_anonymized #get all not anonymized users.
Mojesouhlasy::Users.approved_for_purpose('purpose-id') #get all approved users for specific purpose.

Mojesouhlasy::Purposes.list #get all company's purposes.

FAQs

Package last updated on 29 May 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.