tinderjs / tinderjs

Node package providing programmatic access to the Tinder API
72 stars 17 forks source link

.getAccount returns Undefined #50

Open crt434 opened 6 years ago

crt434 commented 6 years ago
var tinder = require('tinder');
var client = new tinder.TinderClient();
var _ = require('underscore')

client.authorize(
  "FB_ACCESS_TOKEN",
  "MY_ID_IS_HERE",
  function() {
    client.getAccount(function(error, data){
      console.log(data.results);
    });
});

In console I receive the following...

undefined

I have regenerated tokens again and still get this issue. The getRecommendations example in readme works fine for me, so I don't understand where the issue is coming from.

crt434 commented 6 years ago

@mayeaux is this repo still being maintained/worked upon

mayeaux commented 6 years ago

Not currently by myself, some people are still using / working on it though I believe

patrickclery commented 6 years ago

Use console.log(data) instead of console.log(data.results) and this will work.

mayeaux commented 6 years ago

@crt434 can you confirm if @pwntrik's fix works for you?