Print

PRO: Load multiple JSON

Your situation:
You have a API that gives you a list of dataitems (e. g. Sport-Ranking). But for each dataitem you need additional info available via another API-request. The task is to load for each dataitems the data.

Example:

The JSON you get is a list of IDs. More data for each ID is available with another API-Request on an ID. So inside a JCI-Template another JCI-Template is called – is is what we call “nested”.

Solution:

Load the JSON-list and use the twig-filter “doshortcode” to execute another JCI-Shortcode

see here how this is done: http://api.json-content-importer.com/api-snooker-org-nested-shortcodes/

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Previous PRO: List data and offer link to details
Next PRO: Pagination
On this page: