pecee / tinder-sdk
Easy to use PHP SDK for accessing Tinder data.
Installs: 1 282
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 6
Forks: 7
Open Issues: 3
Requires
- pecee/http-service: 1.*
Requires (Dev)
- pecee/http-service: 1.*
- phpunit/phpunit: 4.7.7
This package is auto-updated.
Last update: 2024-10-25 13:20:24 UTC
README
Easy to use PHP SDK for accessing Tinder data.
NOTE: This SDK is unofficial and based on an unofficial API with no or minimal documentation. Please use with caution as functionality might break or be completely removed each time Tinder changes it's API.
WARNING: NOT FOR PRODUCTION USE!
Installation
Add the latest version of tinder-php-sdk to your project by running
composer require pecee/tinder-sdk
Examples
This section contains basic examples on how to use the SDK.
Getting your Facebook token
The Tinder PHP-SDK requires a valid authorizes Facebook access-token in order to communicate to the Tinder SDK.
Please follow the steps below to obtain your Facebook access-token.
- Navigate to the following URL.
-
Before clicking "OK" open Chrome Developer Tools and click on the "Network" tab. Make sure to filter by XHR requests.
-
Click "OK" to authorize Tinder in the Facebook dialog.
-
Find your access_token like shown in the screenshot below:
Authentication
$tinder = new \Pecee\Http\Service\Tinder($fbUserId, $fbToken);
Get user info
$tinder->getUser();
Send message
$tinder->sendMessage($userId, $message);
Report user
$tinder->reportUser($userId);
Update profile
$tinder->updateProfile(array('age_filter_min' => 26, 'gender' => 1, 'age_filter_max' => 18, 'distance_filter' => 14);
Update location
$tinder->updateLocation($lat, $lon);
Like user
$tinder->like($userId);
Pass/dislike user
$tinder->pass($userId);
Get updates
$tinder->updates();
Get recommendations
Get users and groups (Tinder Social) recommendations.
$tinder->recommendations();
Get friends
View friends from Facebook that have a Tinder profile.
$tinder->friends();
Get Tinder user by id
$tinder->user($userId);
The MIT License (MIT)
Copyright (c) 2016 Simon Sessingø / tinder-php-sdk
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.