Configuration options

greatcontent offers the option to push accepted texts with defined formatting and export structure to a connected API endpoint in JSON or XML format. In case other formats are required, custom solutions can be developed depending on the clients requirements.



Details

Example

Connection

greatcontent’s system can connect to any defined endpoints based on a provided authentication method.


Endpoint requirements

Request method: POST

Response success code: 200 (In case of failure body of the Response will be stored as it is.)


Export triggers

Texts are pushed upon acceptance and by manual trigger in the greatcontent system. 


Each text can be accepted manually by the users or automatically after a number of days. 




HTML formatting

Texts will be formatted in valid HTML with UTF-8 encoding according to the defined layout requirements. 


Number, order and amount of formatting elements can be strictly defined and will be validated prior to text submission.


<h1></h1>

<h2></h2>

<h3></h3>

<h4></h4>

<h5></h5>

<h6></h6>

<p></p>
<ul></ul>

<ol></ol>

Export sections

Texts will be structured according to the defined layout requirements. Each export section can be exported as a separate block.


[[Export element 1]]
<h1></h1>

[[Export element 2]]

<H2></H2>

<p></p>
<ul><li></li></ul>

[[Export element 3]]
<p></p>

<p></p>

<p></p>


Export formats

Each text has the following structural elements:


Field

Description

order_no

Greatcontent order number

external_id

External client identifier

title

Title of the text

text

Entire text including HTML formatting

sections

Each text segment including HTML formatting as defined in export structure



JSON Example

    {
        "order_no": "O3H6K82K4JU6",
        "external_id": "",
        "title": "Test JSON export",
        "text": "<h1>lorem ipsum<\/h1>\n\n<h2>lorem ipsum<\/h2>\n\n<p>lorem ipsum<\/p>\n\n<ul>\n<li>lorem ipsum<\/li>\n\n<li>lorem ipsum<\/li>\n\n<li>lorem ipsum<\/li>\n\n<\/ul>\n\n<p>lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum<\/p>\n\n<p>lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u00a0 \u200blorem ipsum lorem ipsum\u200b lorem ipsum<\/p>\n\n<p>lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum \u200b\u200blorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum \u200b lorem ipsum lorem ipsum\u200b lorem ipsum Test<\/p>\n\n",
        "sections": {
            "[[Export element 1]]": "<h1>lorem ipsum<\/h1>\n\n",
            "[[Export element 2]]": "<h2>lorem ipsum<\/h2>\n\n<p>lorem ipsum<\/p>\n\n<ul>\n<li>lorem ipsum<\/li>\n\n<li>lorem ipsum<\/li>\n\n<li>lorem ipsum<\/li>\n\n<\/ul>\n\n",
            "[[Export element 3]]": "<p>lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum<\/p>\n\n<p>lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum\u00a0 \u200blorem ipsum lorem ipsum\u200b lorem ipsum<\/p>\n\n<p>lorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum \u200b\u200blorem ipsum lorem ipsum\u200b lorem ipsum\u200b lorem ipsum lorem ipsum\u200b lorem ipsum \u200b lorem ipsum lorem ipsum\u200b lorem ipsum Test<\/p>\n\n"
        }
    }



XML Example

<?xml version="1.0" encoding="utf-8"?>
<order>
<order_no>O3H6K82K4JU6</order_no>
<external_id><![CDATA[]]></external_id>
<title><![CDATA[Test XML export]]></title>
<text><![CDATA[<h1>lorem ipsum</h1>

<h2>lorem ipsum</h2>
<p>lorem ipsum</p>

<ul>
<li>lorem ipsum</li>
<li>lorem ipsum</li>
<li>lorem ipsum</li>

</ul>

<p>lorem ipsum lorem ipsum</p>
<p>lorem ipsum lorem ipsum lorem ipsum lorem ipsum ipsum lorem ipsum</p>
<p>lorem ipsum lorem ipsum lorem ipsum Test</p>

]]></text>
<sections count="3">
<section name="[[Export element 1]]">
<![CDATA[<h1>lorem ipsum</h1>

]]>
</section>
<section name="[[Export element 2]]">
<![CDATA[<h2>lorem ipsum</h2>

<p>lorem ipsum</p>

<ul>
<li>lorem ipsum</li>
<li>lorem ipsum</li>
<li>lorem ipsum</li>
</ul>

]]>
</section>
<section name="[[Export element 3]]">
<![CDATA[<p>lorem ipsum lorem ipsum</p>
<p>lorem ipsum lorem ipsum lorem ipsum lorem ipsum ipsum lorem ipsum</p>
<p>lorem ipsum lorem ipsum lorem ipsum Test</p>

]]>
</section>
</sections>

</order>