1. Go to this page and download the library: Download henshall/php-tinder-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
henshall / php-tinder-api example snippets
use Henshall\TinderApi;
use Henshall\TinderMockApi;
use Henshall\TinderApiInterface;
$myTinderPhoneNumber = "1112223456"; // no spaces
$tinderApi = new TinderApi;
$result = $tinderApi->requestCode($myTinderPhoneNumber);
$myTinderPhoneNumber = "1112223456"; // no spaces
$tinderApi = new TinderApi;
$result = $tinderApi->validateCode($myTinderPhoneNumber, "123456");
// Grab the Refresh Token
$refresh_token = $result->data["refresh_token"];
$tinderApi = new TinderApi;
$result = $tinderApi->getTokenFromRefreshToken($refresh_token);
// Grab the Tinder API Token
$tinder_token = $result["api_token"];
$tinderApi = new TinderApi;
$result = $tinderApi->getProfile($tinder_token);
$tinderApi = new TinderApi;
$result = $tinderApi->getMetadata($tinder_token);
$tinderApi = new TinderApi;
$result = $tinderApi->getRecommendations($tinder_token);
$tinderApi = new TinderApi;
$result = $tinderApi->like($tinder_token, $id);
$tinderApi = new TinderApi;
$result = $tinderApi->pass($tinder_token, $id);