Skip to content

mrsideshowjack/consentua-component

Repository files navigation

Published on webcomponents.org

<consentua-component>

NOTE not production ready, please see issues on github

A web component for interfacing with Consentua (get and set user consents), built on Polymer2.

What is Consentua?

Video of the andriod SDK demo of the same widget vimeo

consentua-component

API

The component interfaces with the Consentua API, and its main purpose is to get (view) and set consents. For development and testing, we have set up a demo user on the test API.

 client-id="2"
 service-id="1"
 key="19fb13ab-d6f2-42dc-a41c-42249450b5b6"

Usage

<consentua-component key="19fb13ab-d6f2-42dc-a41c-42249450b5b6"
                               device-id="ACoolAndUniqueDeviceID"
                               service-id="1"
                               client-id="2"
                               user-identifier="demo@test.com">
                               </consentua-component>
  • key, service-id, client-id - Will be provided to you when you sign up with Consentua
  • device-id - recommend using fingerprintjs2
  • user-identifier - A user identifier, we recommend an email address

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your element locally.

Viewing Your Element

$ bower install
$ polymer serve

view reusable components: http://localhost:8081/components/consentua-component/demo

Install into your app

$ bower install https://github.com/mrsideshowjack/consentua-component.git

Contributing

Everything is welcome! Fork, change and send me a pull request.

License

(c) Jack Mason Apache License 2.0