API: Wikipedia

API-Source: Wikipedia API is at https://www.mediawiki.org/wiki/API:Main_page API-Example: https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles=Pope%20Francis see Wikipedia: https://en.wikipedia.org/wiki/Pope_Francis JCI-Syntax for free Plugin: Example:

API meetup.com: Search meetups

API-Source: https://secure.meetup.com/meetup_api (Basics: Plugin and meetup.com API) The magic behind: 1. Twig-template code (store in Templatemanager!): 2. WordPress-Shortcode (enable urlparam-option in plugin-setings!): [jsoncontentimporterpro parser=twig id=5 url=https://api.meetup.com/2/open_events?lat=48.1250724792&lon=11.5571479797&page=20&key=… urlparam=text#lat#lon]

API meetup.com: Basics and Examples

API-Source: https://secure.meetup.com/meetup_api The meetup.com API offers several ways of authentication, here we use the “API key” way: Register at meetup.com, at https://secure.meetup.com/de-DE/meetup_api/key/ you’ll get an “API key”. Examples: 1. see below: Display the next meetups in my member-groups 2. Advanced: Search meetup.com API Display the next meetups in my member-groups 1. PRO-Plugin: Do some algorithm … Continue reading “API meetup.com: Basics and Examples”

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: