EurActory Embed Tool


This API sits between the EurActory and a client website that would like to embed EurActory cards. It exists because:

Warning: This API uses screen scraping to extract data from the EurActory. If the EurActory HTML structure changes dramatically, the API may need tweeking to continue functioning.

Use

Note: jQuery v1.11 must be loaded before the script.

To load the script itself:

<script src='//assets.euractiv.com/euractory/euractory-min.js'></script>

The script creates creates a global object at window.EA.euractory.

The embeds are marked up for bootstrap display; to include more base styling include the stylesheet:

<link href='//assets.euractiv.com/euractory/euractory-min.css' rel='stylesheet'>
Error [E_WARNING]: Illegal string offset 'img' (plugins/euractory/examples/03-json-profile-source.php:17)
Error [0]: Only variables can be passed by reference (plugins/euractory/examples/03-json-profile-source.php:17)