{"_id":"tinderjs","_rev":"37-8228db6f1477ac821dad478dc1e43149","name":"tinderjs","time":{"modified":"2022-07-13T16:18:09.337Z","created":"2014-04-07T04:55:38.642Z","1.0.0":"2014-04-07T04:55:40.178Z","0.0.9":"2014-04-07T05:00:34.831Z","0.0.0":"2014-04-07T05:02:22.743Z","1.0.1":"2014-04-07T05:05:11.614Z","1.0.2":"2014-04-07T05:11:36.063Z","1.0.3":"2014-04-09T06:02:32.516Z","1.0.4":"2014-04-10T04:11:09.507Z","1.0.5":"2014-04-11T16:22:52.251Z","1.0.6":"2014-04-14T03:13:17.317Z","1.0.7":"2014-08-30T23:03:02.037Z","1.0.8":"2014-10-13T02:47:36.458Z"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}],"description":"Programmatically access the Tinder dating service API","readme":"# tinderjs\n\n  Programmatic access to the Tinder API\n  \n  \n## Installation\n\n    $ npm install tinderjs\n    \n    \n## Introduction\n\n  tinderjs is a simple node.js wrapper around the Tinder API. Below is a simple example which gets a list of nearby profiles and prints them out:\n  \n```js\nvar tinder = require('tinderjs');\nvar client = new tinder.TinderClient();\n\nclient.authorize(\n  <fb user token>,\n  <fb user id>,\n  function() {\n    client.getRecommendations(10, function(error, data){\n      console.log(data.results);\n    });\n  });\n});\n```\n\n## Supported APIs\n\n### .authorize(fb token, fb id, callback)\n\n  Authorizes the `TinderClient`. You must call this before any other method.\n  \n* `fb token` is a facebook user access token. You would acquire this by having your user log in using your application \n* `fb id` is the id of the facebook user \n* `callback` is called when the request completes \n\n### .getDefaults()\n\n  Returns information from tinder about your client, where you can find your user data and also globals (e.g: `recs_size`)\n  that allows you to interact where api timeouts and limits.\n\n### .userId\n\n  Once authorized, this property will be set the current profile's tinder user id. \n\n### .sendMessage(user id, message, callback)\n\n  Sends a message to a user. \n  \n* `user id` is the user's id. This is obtained e.g via `getRecommendations` \n* `message` is the message to send. \n* `callback` is called when the request completes \n\n### .like(user id, callback)\n  \n  Likes a user (swipes right).\n  \n* `user id` is the user's id. This is obtained e.g  via `getRecommendations`\n* `callback` is called when the request completes \n\n### .pass(user id, callback)\n\n  Pass on a user (swipes left).\n  \n* `user id` is the user's id. This is obtained e.g  via `getRecommendations`\n* `callback` is called when the request completes \n\n### .getRecommendations(limit, callback)\n\n  Gets nearby users\n  \n* `limit` is how many results to limit the search to \n* `callback` is called when the request completes \n\n### .getUpdates(callback)\n\n  Checks for updates. The response will show you new messages, new matches, new blocks, etc. \n  \n* `callback` is called when the request completes \n\n### .getHistory(callback)\n\n  Gets the complete history for the user (all matches, messages, blocks, etc.).\n  \n  NOTE: Old messages seem to not be returned after a certain threshold. Not yet sure what exactly that timeout is. The official client seems to get this update once when the app is installed then cache the results and only rely on the incremental updates\n\n* `callback` is called when the request completes \n\n### .updatePosition(longitude, latitude, callback)\n\n  Updates your profile's geographic position\n\n* `longitude` is the longitude of the new position\n* `latitude` is the latitude of the new position\n* `callback` is called when the request completes \n\n### .getUser(user id, callback)\n\n  Get user information by id\n\n* `user id` is the user's id. This is obtained e.g  via `getRecommendations`\n* `callback` is called when the request completes \n\n## Examples\n\n  The following example authorizes a client, gets some nearby profiles, likes all of them, and sends a message to any of the ones that match\n  \n```js\nvar tinder = require('tinderjs');\nvar client = new tinder.TinderClient();\nvar _ = require('underscore')\n\nclient.authorize(\n  <fb user token>,\n  <fb user id>,\n  function() {\n    \n    var defaults = client.getDefaults()\n    var recs_size = defaults.globals.recs_size;\n    \n    client.getRecommendations(recs_size, function(error, data){\n      _.chain(data.results)\n        .pluck('_id')\n        .each(function(id) {\n          client.like(id, function(error, data) {\n            if (data.matched) {\n              client.sendMessage(id, \"hey ;)\");\n            }\n          });\n        });\n    });\n  });\n});\n```\n    \n## License\n\n  MIT\n","versions":{"0.0.9":{"name":"tinderjs","version":"0.0.9","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"_id":"tinderjs@0.0.9","dist":{"shasum":"6b3bad32cf8a2f601208ef012ae65f3868500ca3","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-0.0.9.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"0.0.0":{"name":"tinderjs","version":"0.0.0","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"_id":"tinderjs@0.0.0","dist":{"shasum":"89cc979d06db50e9ade39d12f9ef4df8fdae7a5f","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-0.0.0.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.1":{"name":"tinderjs","version":"1.0.1","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"_id":"tinderjs@1.0.1","dist":{"shasum":"648853f4149d1f9e5bce80a3bb0f62cbb7b99b64","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.1.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.2":{"name":"tinderjs","version":"1.0.2","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"homepage":"https://github.com/alkawryk/tinderjs","_id":"tinderjs@1.0.2","dist":{"shasum":"13c9404b602bddfa3274dc0559e20a6ccb7ea851","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.2.tgz","integrity":"sha512-7LrHoADcCzuExU4kEXd46w0AdNvJb+azW9ZVKkztpzRresYbRKdKkTvK/7KGZwnCvsXswIF2uU4BY1z2Ao2tJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQh2DwsmZaqfbq9VTyjNf+lkdmnCMLxoKfhoEZi8KLowIhANlWE9ji6244EU8afI5UF2XJ2I2hrSY5z2ToV5zovXdJ"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.3":{"name":"tinderjs","version":"1.0.3","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"homepage":"https://github.com/alkawryk/tinderjs","_id":"tinderjs@1.0.3","dist":{"shasum":"182e0eec2ba9137982603c8f807c772394c5eb25","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.3.tgz","integrity":"sha512-BuVc0j4YBl19x+dmo1dt4jRXlk/SCA53l1NbINQD0FhFpC+5XU5wh8pfwxwkBZ47OfsmxJbsaK9TgX+QogUiLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG4NgSIaj1cTaJr3H0w69xRQkVmfSkJ/rpSBqJ+X3qOJAiEA9xh3ZmYU0Xz/SF3pVXawxmF373OLbUvvfZ1faVUwZeg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.4":{"name":"tinderjs","version":"1.0.4","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"homepage":"https://github.com/alkawryk/tinderjs","_id":"tinderjs@1.0.4","dist":{"shasum":"f2d04f157578961e6009b71c22e2a9643687bfb9","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.4.tgz","integrity":"sha512-AWgUOgMtV07o+VQepaBuGw9KnxcLnqewpYkFmlQzYAKgbUhc9LafCEaBp656ZyPiLFpRbUt1jeXCvoE9QNWyfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxiUZxELMKdz7qLkLVMn6vyX5Yu6/tmaKW279fdJoefgIhAJTMtTgYoO5V+JzHy3q7amhZUJXl+egWRSPX8HUz6ExH"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.5":{"name":"tinderjs","version":"1.0.5","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"homepage":"https://github.com/alkawryk/tinderjs","_id":"tinderjs@1.0.5","dist":{"shasum":"9ed1b06823b595c1049229ca2ea41e2c710197ce","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.5.tgz","integrity":"sha512-njbh7rTc5igno2DkuXGOSMNiZ9qQS7vgX7FBt3ExHlw0/D5qA85sVVi66rJxETz0LGHq0ws691H8tyVJOT6irw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClEv9FPE78X9ql5CsGL2pDx4wwbZBmmHjqnet+GGl8sgIhAJLj4TEzWkDh0i9DOFdCijamfMKPc4sIrDyMZt1Saq9M"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.6":{"name":"tinderjs","version":"1.0.6","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"homepage":"https://github.com/alkawryk/tinderjs","_id":"tinderjs@1.0.6","dist":{"shasum":"b02a9e207f40d3419a9e473d8d0c89de61020a2e","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.6.tgz","integrity":"sha512-aph6Z1SCNZacjHuvMF9rdYB3J/jNRAzpTZUZ90YKTpF8vQyFurjZt2QWp2q2hfhKfHc6OLw04nQ54EdwDS/dpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBXcLtVGfHKhV1UoxRRPKG9QgJ6u8XnZ7RIXgPYlToz3AiBmwYhby2dqMuvDWxcE80yeuYrk3dQyLB/RklA2SH+PEA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.7":{"name":"tinderjs","version":"1.0.7","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"homepage":"https://github.com/alkawryk/tinderjs","_id":"tinderjs@1.0.7","dist":{"shasum":"e24c50ea7a756ff95a6b1d45336ea354e6b56a12","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.7.tgz","integrity":"sha512-7m8GMesw/oJ/P0ywfE0Hk4rGzCkj8jvh0iDfTV4m3fDqmdqPsWyvDSVV14YN3V3E2cFwUFx0/WJBuFy9fYzqNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEhugqi9WNf+DeM6wXgQWik49zyb9tPC+M/Gt82uA4JAIgFlvTDbVVRcyj/56+rKVMtcJaGQmRc7ovEI4TgAD4/9A="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}]},"1.0.8":{"name":"tinderjs","version":"1.0.8","description":"Programmatically access the Tinder dating service API","main":"tinder.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","dependencies":{"request":"2.34.0"},"gitHead":"265ea7cebc2fc32d3fc03cce24df1dea941748c3","bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"homepage":"https://github.com/alkawryk/tinderjs","_id":"tinderjs@1.0.8","_shasum":"244918e0c3bacb9613a8c17eff522d589833ef65","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"alkawryk","email":"azzro.boy@gmail.com"},"maintainers":[{"name":"alkawryk","email":"azzro.boy@gmail.com"}],"dist":{"shasum":"244918e0c3bacb9613a8c17eff522d589833ef65","tarball":"https://registry.npmjs.org/tinderjs/-/tinderjs-1.0.8.tgz","integrity":"sha512-ESsq2uVm6ttDNhOkFhRSqRB9DFHFGgvQlCY+SpMczvTQgL+YMUJlY55xM5Crg187JT5kpC7KRPSkQRr8x/YM4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6rWHWYuRuGQn8h/V0z4ptvJJAmfBackxsYwSKPQxWtAiEA7y9/Xz2uz9EIhH86r32amlfMaqL4lT9f0uPxDDnpAQ0="}]}}},"dist-tags":{"latest":"1.0.8"},"readmeFilename":"README.md","repository":{"type":"git","url":"git://github.com/alkawryk/tinderjs"},"author":{"name":"alkawryk"},"license":"MIT","homepage":"https://github.com/alkawryk/tinderjs","bugs":{"url":"https://github.com/alkawryk/tinderjs/issues"},"users":{"j3lte":true,"vahoo23":true,"tonyl3":true,"nano":true}}