aboutsummaryrefslogtreecommitdiff
path: root/assets/php
diff options
context:
space:
mode:
authorMarvin Borner2020-02-05 18:47:28 +0100
committerMarvin Borner2020-02-05 18:47:28 +0100
commite64b504e7e4144f2d29d55c4193875472e9dd8a7 (patch)
treeb971da09138a89e388ab18434c3dbc0a9b52ad40 /assets/php
parent94c2214b819c4fe75a479f37aaad99e90bfe5b63 (diff)
Started some kind of rewrite
Diffstat (limited to 'assets/php')
-rwxr-xr-xassets/php/getData.php7
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);