Auto patch API

This commit is contained in:
Pablo Ferreiro 2022-01-04 00:18:13 +01:00
parent c700036aa2
commit c8d6516dd7
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
8 changed files with 23 additions and 9 deletions

7
fix_api.php Normal file
View file

@ -0,0 +1,7 @@
<?php
if (!file_exists(__DIR__ . '/.new_api')) {
$new_api = file_get_contents('https://raw.githubusercontent.com/attend-dunce/TikTok-API-PHP/master/lib/TikTok/Api.php');
file_put_contents(__DIR__ . '/vendor/ssovit/tiktok-api/lib/TikTok/Api.php', $new_api);
file_put_contents(__DIR__ . '/.new_api', 'DO NOT DELETE! This file proves that you have patched the API');
echo('Patched API!');
}