GetUpdatedText web-method [obsolete: use GetResult or GetResultAdv]


Description

GetUpdatedText web-method should be used for getting back edited text from LinguLab web site. Web-method requires result key and valid authentication key.

Web-method returns UpdatedTextResult object with includes result identifier, latest version of raw text, version number, text measure (integer value from 0 to 10), HTML of measure image with details and link to processing details page. In case of error occurred ErrorCode and ErrorMessage contain information about error.

User can go to LinguLab by link to processing details returned by ProcessText web-method and edit text on “Bearbeiten” (available only for web service link) tab:
LinguLab edit text
Having edited text user can click “Zeige Ergebnis” button at the bottom of the page:

Text was updated and stored. Optimize text till it has required measure result. Then GetUpdatedText web-method can be used for getting the latest version of text.
Use "lingulabCustom" attribute for storing custom data (for data relation on client side). For example:
<h1 lingulabCustom="1b5b669a-dabe-4986-96d4-7ac8e458a5f3_0">
Headline text
</h1>
<h3 lingulabCustom="1b5b669a-dabe-4986-96d4-7ac8e458a5f3_1">
Teaser text.<br /><br />
Some text.
</h3>
<div lingulabCustom="1b5b669a-dabe-4986-96d4-7ac8e458a5f3_3">
Simple text
</div>
The "lingulabCustom" attribute contains id of text section and index of element separated by "_" in current example. Value of this attribute will be exist when text come back with GetUpdatedText web-method and can be used by client application.

Note: Having clicked "Eingabe" link new text processing will be started and web service text will not be updated.

Parameters

resultKey integer required
authenticationKey string required

 

Error codes

  • 0: Succeed;
  • 141: Authentication failed;
  • 142: Authentication key was expired;
  • 143: Lack of permission;
  • 240: Wrong parameter. Empty result key or authentication key;
  • 241: Wrong result key. Could not get results by provided result key;
  • 340: Internal error.

Request and response