Auto patch API
This commit is contained in:
parent
c700036aa2
commit
c8d6516dd7
8 changed files with 23 additions and 9 deletions
7
fix_api.php
Normal file
7
fix_api.php
Normal 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!');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue