Basic JSON-/Twig-Usage: _context

API-Source: http://api.json-content-importer.com/extra/json/2.json If your JSON starts with “[{” try this: JCI-Syntax: Examples: PRO-Plugin

API Stadt Köln open-data

API-Source: http://www.stadt-koeln.de/externe-dienste/open-data/traffic.php and http://www.stadt-koeln.de/leben-in-koeln/verkehr/verkehrskalender/ JCI-Syntax: free Plugin: [jsoncontentimporter url=http://www.stadt-koeln.de/externe-dienste/open-data/traffic.php] {subloop-array:features:-1}{subloop:features.attributes:-1}{NAME}: {AUSLASTUNG}{/subloop:features.attributes}{/subloop-array:features} [/jsoncontentimporter] PRO-Plugin (show only >0 values) [jsoncontentimporterpro url=http://www.stadt-koeln.de/externe-dienste/open-data/traffic.php parser=twig] {% for f in features %}{% if f.attributes.AUSLASTUNG>0 %}{{f.attributes.NAME}}: {{f.attributes.AUSLASTUNG}}{% endif %}{% endfor %} [/jsoncontentimporterpro] Examples: free Plugin: PRO-Plugin (show only >0 values)

API www.bokhavet.se

API-Source: https://www.bokhavet.se/api API-Syntax: https://www.bokhavet.se/api/book?isbn=9789188265258&auth_token=… JCI-free option: see http://api.json-content-importer.com/api-www-bokhavet-se-free-plugin/ JCI-Syntax: [jsoncontentimporterpro url=https://www.bokhavet.se/api/book?auth_token=… parser=twig urlparam=isbn] search for isbn: <input type=text name=isbn value=”{{urlparam.isbn}}”> {% if success %} title: {{data.title}}: {{data.pages}} pages, published {{data.published}} {% else %} isbn not found {% endif %} <input type=submit value=”search isbn”></form> [/jsoncontentimporter] Plugin-Settings: “urlparam” must be switched on Example:

wordpress.org request: hklindner 29.10.2016

Problem : How to handle JSON with some dummy data. JSON: see http://api.json-content-importer.com/extra/json/hklindner/hklindner.json JCI-Syntax: code: 200 buildYear: 2015 id: 29460 price: 2.99 Euro Example:

API www.bokhavet.se (free Plugin)

API-Source: https://www.bokhavet.se/api API-Syntax: https://www.bokhavet.se/api/book?isbn=9789188265258&auth_token=… JCI-Syntax: [jsoncontentimporter url=https://www.bokhavet.se/api/book?isbn=9789188265258&auth_token=… basenode=data] isbn: <input type=text name=isbn value=”{isbn}”> {subloop-array:prices:-1}type: {prices.type}, price: <input type=text name=price value=”{prices.price}”> {/subloop-array:prices} [/jsoncontentimporter] Example:

API: expedia.com

API: http://developer.ean.com/docs/hotel-info/examples/rest-content-options Requirements: Install the free WordPress Plugin Insert PHP for putting together the signature-key Use “_symbol_at_” in the template when the JSON-key contains @, otherwise the twig-parser crashes JCI-Syntax: [jsoncontentimporterpro url=http://api.json-content-importer.com/extra/json/expedia/ean-com-1.json?sid=[insert_php] $apiKey = ‘xxx-YourAPIkey-xxx’; $secret = ‘xxYourSecretxx’; $timestamp = gmdate(‘U’); // 1427233130 (Tue, 24 Mar 2015 21:38:50 +0000) $sig = md5($apiKey . $secret . … Continue reading “API: expedia.com”

API: data.sportlink.com

API-Source: http://www.sportlinkclub.nl/ledenadministratie/club-dataservice/ API-Syntax: https://data.sportlink.com/teams?client_id=… or https://data.sportlink.com/poulestand?client_id=…&poulecode=…. JCI-Syntax: [jsoncontentimporterpro url=https://data.sportlink.com/teams?client_id=… parser=twig] {% for item in _context %} {% if item.poulecode>0 %} poulecode: {{item.poulecode}} [jsoncontentimporter url=https://data.sportlink.com/poulestand?client_id=…&poulecode={{item.poulecode}}] {teamnaam:ifNotEmptyAddLeft:teamnaam }{clubrelatiecode:ifNotEmptyAddLeft:clubrelatiecode } [/jsoncontentimporter] {% endif %} {% endfor %} [/jsoncontentimporterpro] Settings of jsoncontentimporterpro: The Plugin-Option-Tab “Settings” > “Usage of other shortcodes:” must be “first JSONContentImporter-Shortcode, 2nd: third-party-Shortcodes (default)” Example: