diff options
author | Marvin Borner | 2020-02-05 18:47:28 +0100 |
---|---|---|
committer | Marvin Borner | 2020-02-05 18:47:28 +0100 |
commit | e64b504e7e4144f2d29d55c4193875472e9dd8a7 (patch) | |
tree | b971da09138a89e388ab18434c3dbc0a9b52ad40 /assets/php | |
parent | 94c2214b819c4fe75a479f37aaad99e90bfe5b63 (diff) |
Started some kind of rewrite
Diffstat (limited to 'assets/php')
-rwxr-xr-x | assets/php/getData.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/assets/php/getData.php b/assets/php/getData.php index 22f0f26..9849752 100755 --- a/assets/php/getData.php +++ b/assets/php/getData.php @@ -5,15 +5,18 @@ * @copyright Marvin Borner 2018 */ +$debug = true; $cookie = $_POST['cookie']; -if (isset($cookie)) { +if ($debug) { + print_r(file_get_contents("debug.json")); +} else if (isset($cookie)) { $isLastPage = false; $currentPage = 0; $result = '['; while ($isLastPage === false) { - $ch = curl_init('https://www.netflix.com/api/shakti/ve8ded8cd/viewingactivity?pg=' . $currentPage . '&pgSize=100'); + $ch = curl_init('https://www.netflix.com/api/shakti/v52f427f5/viewingactivity?pg=' . $currentPage . '&pgSize=100'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_COOKIE, $cookie); |