par-mais-data
v1.0.2
Published
Par Mais User Data.
Downloads
13
Readme
Sending useful data to Par Mais Big Data store.
Par Mais Data
- Lead Maintainer: Diego Laucsen
- Sponsor: Par Mais
- Node: 6.x
Initialization
Initialize Par Mais Data Module with:
import ParMaisData from 'par-mais-data';
ParMaisData.init('APP_IDENTIFIER')
Events and Identifications
Uset this operation do identify an user.
ParMaisData.identify(eventName, userId, userData, eventData);
Or to register just an event.
ParMaisData.event(eventName, eventData);
Data Base
Sending data to our database
ParMaisData.persisData(data);
Sent dada must contain relevant data, as user email and name, like:
{
"name": "user name",
"email": "user email"
}
This method will return an id
and a link
to recover this data.
Getting data from our database
To get data:
ParMaisData.getData(id);
This id is the sabe returned on persisData
.
Contributing
The Par Mais Tecnologia encourages participation. If you feel you can help in any way, be it with bug reporting, documentation, examples, extra testing, or new features feel free to create an issue, or better yet, [submit a Pull Request. For more information on contribution please see our Contributing guide.
License
Copyright (c) 2017 Par 6 Tecnologia LTDA; Licensed under Apache 2.0.