I have the following code:
<?php $ids = 'ids=com.hugogames.hugotrollwars'; $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $ids ) ); $context = stream_context_create($opts); $result = file_get_contents('https://play.google.com/store/xhr/getdoc', false, $context); $convert = explode("\n", $result);
Basically it pulls permissions from the Playstore and displays it as a string. The problem I am facing is to delete unnecessary data (links to images, description) and show only permissions and description of permissions. I tried using json_decode function with php and returned NULL.
Is there something I am missing?
Any help is much appreciated!
json php
nickmc01 Mar 02 '14 at 22:28 2014-03-02 22:28
source share