NOTE not production ready, please see issues on github
A web component for interfacing with Consentua (get and set user consents), built on Polymer2.
Video of the andriod SDK demo of the same widget vimeo
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"
<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
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your element locally.
$ bower install
$ polymer serve
view reusable components: http://localhost:8081/components/consentua-component/demo
$ bower install https://github.com/mrsideshowjack/consentua-component.git
Everything is welcome! Fork, change and send me a pull request.
(c) Jack Mason Apache License 2.0