aboutsummaryrefslogtreecommitdiff
path: root/assets/php/getJson.php
blob: f4155e34aa0e0cbc1778afb6cf48adc2886b6b7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
<?php
$NetflixCookie = $_POST["Cookie"];

$ch = curl_init("https://www.netflix.com/api/shakti/7742b8c7/viewingactivity");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_COOKIE, $NetflixCookie);
$NetflixJson = curl_exec($ch);
curl_close($ch);

print_r($NetflixJson);