Hi,
I want use some data from RESTFul API (JSON) and show in sidebar, so I created a template and include in PAGE_CONTAINER,
and in new template I used <xen:callback> to include and run my php code, in php code I use file_get_contents to read from json.
everything seems to be ok, but I have 2 questions:
1- I want to know my way is true or xenForo has some methods for processing JSON APIs?
2- how can I cache JSON data? because every time the page load, server should connect to JSON url !
Regards
I want use some data from RESTFul API (JSON) and show in sidebar, so I created a template and include in PAGE_CONTAINER,
and in new template I used <xen:callback> to include and run my php code, in php code I use file_get_contents to read from json.
everything seems to be ok, but I have 2 questions:
1- I want to know my way is true or xenForo has some methods for processing JSON APIs?
2- how can I cache JSON data? because every time the page load, server should connect to JSON url !
Regards