I have a json feed from zoho : here, you can acces the same file unencrypted here
I like to be able to display and parse the data from that feed int html
I have ask a similar question yesterday, but the solution was a javascript, and having java disable client side can lead to nothing to display… so i will go with php. I can parse a var but a feed ?….
Question #2. Is it possible to capture a json feed, and save it as file (for backup purpose), so i will acces that file if the site go down (small possibilites)
You first have to get the JSON data from the remote server ; not sure how you can do that, considering there seems to be an authentication mecanism in place, but maybe
file_get_contentsorcurlcould help.Once you have that JSON string in a PHP variable, it’s just a matter of calling
json_decodeon it, to get your data.For instance :
Will get you an output like this one :
Note I used the “not encrypted” version, because I have no idea what kind of API you need to use to access the crypted one (never used “zoho”)