<figure class="element element-atom">
<gu-atom data-atom-id="d409e35f-d4a3-4fbe-a5ac-3437180b5660" data-atom-type="qanda">
<div>
<div class="atom-Qanda">
<p></p>
<p>The Parole Board is an independent body ... </p>
[ More paragraphs here ... ]
<p> ... staff to support them.</p>
<p></p>
</div>
</div>
</gu-atom>
</figure>
A worse example is the "Explainer" on this page https://www.theguardian.com/media/2018/mar/28/julian-assange-internet-connection-ecuador-embassy-cut-off-wikileaks seen here:
When this is fetched from the API using http://content.guardianapis.com/media/2018/mar/28/julian-assange-internet-connection-ecuador-embassy-cut-off-wikileaks?show-fields=all&api-key=test then the box is include but contains no content at all:
<figure class="element element-atom"><gu-atom data-atom-id="19e4c3a8-0a8d-4710-ad8e-9ee37c06c41a" data-atom-type="explainer"><div><div class="atom-Explainer"></div></div></gu-atom></figure>
It think the title in the first example, and the entire content in the second, are filled in using JavaScript on the Guardian's site. It seems odd to have these incomplete elements returned in the data from the API - they're either slightly confusing (no title) or entirely useless, and seem broken.
Is there some option I've missed in the API which would return more complete boxes, or is there something broken with the API's generation of these boxes, or is this just how things are and the API's going to be a little broken from now on?
Thanks,
Phil Gyford
--
You received this message because you are subscribed to the Google Groups "Guardian Open Platform API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guardian-api-talk+unsubscribe@googlegroups.com.
To post to this group, send email to guardian-api-talk@googlegroups.com.
Visit this group at https://groups.google.com/group/guardian-api-talk.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to guardian-api-t...@googlegroups.com.
To post to this group, send email to guardian...@googlegroups.com.
Visit this group at https://groups.google.com/group/guardian-api-talk.
For more options, visit https://groups.google.com/d/optout.
It think the title in the first example, and the entire content in the second, are filled in using JavaScript on the Guardian's site. It seems odd to have these incomplete elements returned in the data from the API - they're either slightly confusing (no title) or entirely useless, and seem broken.