View Single Post
Old 10-25-2017, 10:43 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Can you code at all Nick?
PHP
json_decode
isnt really that hard

PHP Code:
//jsonFile_parse.php
//http://jsonviewer.stack.hu/  online JSON viewer or use firefox
/*first do: 
$ curl "http://feed.jsonFile.com/api/v1/browse/online_embed?id=YOURS&type=revs" >jsonFile.json
^^<change URL  id*/




$data file_get_contents ("jsonFile.json");
#echo $data;
        
$json json_decode($data'true');
            
$ct=0;
//var_dump($json);
foreach($json['results'] as $i){
    
$ct ++;
    echo 
"\n\n$ct\n";
    echo 
"{$i['name']}\n";
//echo each node(A key for  the value or 2nd level array) to see you have the values right

   
$m_tags=array();
            
$tag_arr=$i['tags'];
                foreach(
$tag_arr as $value){
                    
array_push($m_tags,$value); 
                        }
$m_tags=json_encode($m_tags);
    echo 
"$m_tags\n";

//if you get Array (junk) do this^^
//$m_tags will print out ["$m_tags[0]","$m_tags[1]","$m_tags[2]","$m_tags[3]", ...] <the second level array of a node (name)'s values.

Or, there are a few guys selling scripts to parse camsite feeds for under $100 that would include the whole script and an HTML template.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote