Skip to content

Commit

Permalink
Merge 9ab7678 into d94f563
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Feb 20, 2019
2 parents d94f563 + 9ab7678 commit 37bcd76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -42,13 +42,17 @@ var epflPeopleApi = require('epfl-people-api');
epflPeopleApi.findBySciper(128871, 'en').then(function(person) {
console.log(person.name); //=> 'Duratti'
console.log(person.firstname); //=> 'Lindo'
console.log(person.office); //=> 'INN 015'
console.log(person.office); //=> 'INN 018'
console.log(person.position); //=> 'Computer Scientist'
}).catch(function(err) {
console.log(err);
});

epflPeopleApi.findByEmail('lindo.duratti@epfl.ch', 'en').then(function(person) {
console.log(person.firstname); //=> 'Lindo'
console.log(person.sciper); //=> '128871'
console.log(person.phones); //=> '+41 21 6934553'
console.log(person.unit); //=> 'EXAPP'
}).catch(function(err) {
console.log(err);
});
Expand Down

0 comments on commit 37bcd76

Please sign in to comment.