Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
personapi
Advanced tools
Readme
A simple library that allows you to access the functions provided by the PersonAPI platform.
npm install personapi
var personapi = require('personapi');
personapi.init({
token: "your_user_token",
app_token: "your_app_token"
});
personapi.registerUser({
"email": "suyash@codevigor.com",
"password": "user_password"
})
.then(function(response) {
console.log(response);
})
.catch(function(err) {
console.log(err);
});
- Login function - creates a new session for a user
personapi.login({
email: "suyash@codevigor.com",
password: "user_password"
});
- Check session - checks if a user's session is still active
personapi.checkSession({
email: "suyash@codevigor.com",
login_token": "token_received_after_login"
});
- Logout - destroys the current active session for a user
personapi.logout({
email: "suyash@codevigor.com",
login_token": "token_received_after_login"
});
- Retrieve user details - queries the service for details of a user
personapi.getUserDetails({
email: "suyash@codevigor.com",
login_token": "token_received_after_login"
});
- Update user details - overwrites user details
personapi.saveUserDetails({
email: "suyash@codevigor.com",
login_token": "token_received_after_login",
first_name: "new first name",
surname: "new last name",
additional_details: {
address: "new address",
mobile: "new mobile"
}
});
- Update password - updates password of user
personapi.changePassword({
email: "suyash@codevigor.com",
login_token": "token_received_after_login",
old_password: "old user password",
new_password: "new password"
});
- Get user list - returns list of users
personapi.getUserList({
email: "suyash@codevigor.com",
login_token": "token_received_after_login"
});
- Sends email for reset password
personapi.emailForResetPassword({
email: "suyash@codevigor.com"
});
FAQs
NPM module to easily access and use the functions provided by the PersonAPI platform (https://personapi.codevigor.com)
We found that personapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).