Skip to content

Commit

Permalink
Merge pull request #136 from dreadjr/master
Browse files Browse the repository at this point in the history
add me for instagram
  • Loading branch information
TheVinc committed Dec 17, 2014
2 parents c050505 + fe09e4d commit c65da9d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions providers/instagram/me.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
var me = {
fetch: [
function(fetched_elts) {
return '/v1/users/self';
}
],
params: {},
fields: {
id: function(me) {
return me.data.id || undefined;
},
alias: function(me) {
return me.data.username || undefined;
},
name: function(me) {
return me.data.full_name || undefined;
},
avatar: function(me) {
return me.data.profile_picture || undefined;
}
}
};
module.exports = me;

0 comments on commit c65da9d

Please sign in to comment.