Quantcast
Channel: foreach | Operating systems, scripting, PowerShell and security | jesusninoc.com
Viewing all articles
Browse latest Browse all 409

Leer y analizar (parsear) un archivo JSON con la programación de Movistar+ utilizando PHP desde PowerShell

$
0
0

cd C:\xampp\php

'<?php $url = "http://akamaicache.dof6.com/vod/yomvi.svc/samsung_tizen/profiles/OTT/channels?parentalRating=M18&showNonRated=true";
$json = file_get_contents($url);
$jsonIterator = new RecursiveIteratorIterator(
    new RecursiveArrayIterator(json_decode($json, TRUE)),
    RecursiveIteratorIterator::SELF_FIRST);

foreach ($jsonIterator as $key => $val) {
    if(is_array($val)) {
        echo "$key:\n";
    } else {
        echo "$key => $val\n";
    }
}
?>' | .\php.exe

The post Leer y analizar (parsear) un archivo JSON con la programación de Movistar+ utilizando PHP desde PowerShell appeared first on Scripting and security.


Viewing all articles
Browse latest Browse all 409

Trending Articles