Giter Site home page Giter Site logo

tinderjs's People

Contributors

akawry avatar alkawryk avatar perezpaya avatar stevenirby avatar yefim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tinderjs's Issues

Need to support superlike:

Here's how another library does it:

TinderApi.prototype.sendSuperLike = function(likedUserId, callback) {
  var self = this;
  self.checkAuth();

  if (!likedUserId || typeof likedUserId !== 'string')
    throw new self.ApiException('Missing likedUserId or not String');

  request.post(
    self.constructReqOpts(TINDER_HOST + '/like/' + likedUserId + '/super'),
    self.RequestCallback(callback, 'superLike')
  );
};

Is this library still working?

I tried the auth method with facebook token and facebook user id and got error.

node_modules/tinderjs/tinder.js:166 throw "Failed to authenticate: " + body.error ^ Failed to authenticate: Access Denied

I also tried with CURL.

curl -X POST https://api.gotinder.com/auth --data '{"facebook_token": CAAG..., "facebook_id": 1627...}'

{"code":401,"error":"FacebookTokenRequired"}

Is there anything that I am missing?

authorize method doesn't work

Hi, I have a valid fbToken and fbId get with Tinderbot module but the authorize method of tinderjs doesn't seem to work

this.authorize = function(fbToken, fbId, callback) {

    console.log('fbToken : ',fbToken)
    console.log('fbId : ',fbId)

    tinderPost('auth',
      {
        facebook_token: fbToken,
        facebook_id: fbId
      },
      function(error, res, body) {

        console.log('error : ', error);
        console.log('body  : ', body);



        if (!error && body.token) {
          xAuthToken = body.token;
          _this.userId = body.user._id;
          callback();
        } else if (body.error){
          throw "Failed to authenticate: " + body.error
        }
      });
  };

The console.log('body : ', body); returns :

 body  { status: 'access denied' } 

My question is : Is this still possible to use tinderjs module to use the Tinder API ? and why i've got this access denied ?

Thanks guys

Not actively maintained

Doesn't look like @alkawryk is maintaining this module. I'm interested in doing so. Anybody else want to fork this thing and get it up to snuff?

SendMessage : Match not found

Hi, I retreived the userId (_id) from the getHistory matches, but then, when I try to send a message, it returns : null { status: '500', error: 'Match not found' }
Any idea why?

Unmatch support

Supposedly, it's available at this endpoint:

I've been using this as my header, and it's working fine with me.

headers = { 'app-version': '123',
'platform': 'ios',
'User-agent': 'Tinder/4.0.9 (iPhone; iOS 8.0.2; Scale/2.00)',
'content-type': 'application/json',
}
@pascalwhoop to unmatch:
DELETE /user/matches/{match_id}/

match_id is different than user_id

To get distance you have to request the matches profile
GET /user/{user_id}

Question about token expiration

Auth request hangs, doesn't complete or return error

This is the code I'm using to authorize it (note that it's actually part of the _this object, but it shouldn't make a difference). Before I run the auth function, I logged the params, and got the following:

access_token: XXXXXXXXXXXXXXXXXXXXXXXXXX, user_id: 7003430XXXXXXXX

So the values are correct, and in the FB response for user_id, isvalid is true, so from what I can tell there shouldn't be issues.

 _this.client.authorize(access_token, body.data.user_id, function(){
    console.log("Authorized");
});

The authorized message is never executed.

var can not be resolved to a type

Hello, I am new to programming and this is my first time with java or eclipse. When I use the provided code for the bot I get an error on every line, most notably "var can not be resolved to a type". Obviously this is too many errors to be an issue with the code, so it has to be something I am doing wrong. I've looked online but can't find anything. What am I missing?

Auto liker implementation

I wrote this simple auto liker implementing the tinderjs api wrapper, wanted to share it with you guys :)

var FACEBOOK_ID = "facebook id obtained with charles method"

var FACEBOOK_TOKEN = "facebook token obtained with charles method"

var DISTANCE = '100'; //miles

var TinderPro = require('tinder_pro')
var tinder = new TinderPro()

var liked = 0;
var maxLikes = 1000;
var matches = 0;

tinder.sign_in(FACEBOOK_ID, FACEBOOK_TOKEN, function (err, res, body) {
    tinder.update_search_distance(DISTANCE, function() {
        recursivelyLike(tinder);
    });
});

function recursivelyLike(tinder) {
    tinder.get_nearby_users(function(err, res, body) {
    var results = body.results;

        results.forEach(function (result) {
            tinder.like(result._id, function (err, res, body) {
                liked++;
                if (body.match) {
                    matches++;
                }
                console.log('Liked ' + result.name + ', it was ' + (body.match ? '' : 'not') + ' a match');
                if(liked > maxLikes) {
                    console.log('=== FINISHED ===');
                    console.log('Liked: ' + liked + ', matched: ' + matches);
                    process.exit(0);
                }
            }); 
        }); 
        recursivelyLike(tinder);            
    });
}

Message limit? Bulk messages failing to send

I'm using this module to create a "message all" type functionality.

I pull all the match IDs from getHistory then call sendMessage to each.

I have tried with an account with 800 matches and only around 30 messages appear to go through.

Is there some kind of limit to the number of messages that the API will allow in a period?

Do you know the best method to test if the message was sent and try again if not?

Or should I just delay between sending messages?

Any information would be appreciated. Cheers.

How to set location?

The location is set by default to the last login location on Tinder, so how do you override it to set the location for a latitude and longitude?

The script close himself after two seconds

Hello,

i am trying to run the below script test3.js :

var tinder = require('tinderjs');
var client = new tinder.TinderClient();
var _ = require('underscore');
console.log('Trying to log...');
client.authorize(
"CAAGm0PX4ZCpsxxxxxxxxxxxxxxx",
"100007278xxxxxx",

function() {
console.log('log ok');
var defaults = client.getDefaults();
var recs_size = defaults.globals.recs_size;

client.getRecommendations(recs_size, function(error, data){
  _.chain(data.results)
    .pluck('_id')
    .each(function(id) {
      client.like(id, function(error, data) {
        if (data.matched) {
          client.sendMessage(id, "hey ;)");
        }
      });
    });
});

});


When i run it , i got:

C:\Documents and Settings\Utilisateur\node_modules\tinderjs>node test3.js
Trying to log...

C:\Documents and Settings\Utilisateur\node_modules\tinderjs>

Closed after two seconds, i got the facebook token using Charlesproxy to sniff my phone traffic using charles SSL crt file, and the fb user id using http://graph.facebook.com/myusername

Tinder works fine on my phone aswell on bluestacks android emulator,

i don't know what i can't get connect ? can you help me ??

Thanks you very much

Toto84

'You are out of likes'

Looks like Tinder introduced premium features and limited the amount of daily likes one could give. Probably there are some API changes as well.

How to set location?

The location is set by default to the last login location on Tinder, so how do you override it to set the location for a latitude and longitude?

No contact details

Can you add an email address to your github account? I don't want to abuse the Issues section by asking questions.

Help

Hi,

I seem to not be able to find my way in this program. I have followed all your directions, however i just don't get into the localhost... probably because of my server. Is there a way to process it trough a active webserver instead of localhost?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.