Skip to content

kryptoning/node-happn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-happn


Node package providing programmatic access to the Happn API

This package is under develop. For now, only authenticate an user.

Inspired in rickhousley/happn

Getting Started


Install the package

npm install node-happn

Use it:

First you need a facebook token to create a Happn User-Object. You can get the one associated with your facebook account by clicking here and copying it from the address bar.

  var HappnAPI = require('node-happn');

  var happnInstance = new HappnAPI();

  var fb_access_token = 'YOUR-FB-ACCESS-TOKEN';
  var assertion_type = 'facebook'; // only allows facebook.

  happnInstance.connect(
    fb_access_token,
    assertion_type,
    // callback
    function(err, resp){
      if (err) {
        console.log(err)
        return;
      }
      // user_id of the authenticated user.
      console.log(resp.user_id);
    }
  );

TODO

  • Can you see the list of features here.

About

Node package providing programmatic access to the Happn API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published