1.0.4 • Published 8 years ago

moup v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

moup - Mobile user profile Redis storage

Nodejs module that can get/set the profile of mobile user identified by device id and Facebook id

Install

npm install moup

Usage

var moup = require("moup");

...

moup.connect();

...

moup.getProfile(device_id, facebook_id, function(err, profile) {
  if (err) {
    console.log(err);
  } else {
    console.log(JSON.stringify(profile));
  }
});

...

moup.setProfile(device_id, facebook_id, profile, function(err) {
  if (err) {
    console.log(err);
  } else {
    console.log("Success");
  }
});