Get the HTML code for an existing document embed.
Action: issuu.document_embed.get_html_code
This method requires authentication.
| Name | Data type | Description |
|----------------------|-----------|------------------------------------------|
| apiKey (required) | string | Application key for the account |
| signature (required) | string | See Signing Requests |
| embedId (required) | integer | An existing embed. The embedId is |
| | | returned as the id field when you create |
| | | an embed or by listing existing embed |
| | | It is a single integer and NOT the |
| | | dataConfigId used by the widget |
Here is a basic example of an HTML upload form.
<form action="http://api.issuu.com/1_0" method="get">
<input type="hidden" name="action" value="issuu.document_embed.get_html_code"/>
<input type="hidden" name="apiKey" value="g0ch5rj9ywztlo022w70naymutm2fbbg"/>
<input type="text" name="embedId"/>
<input type="submit" value="Get code"/>
</form>
Pre-formatted HTML code snippet
HTML
<div data-configid="1000974/1000068" style="width: 320px; height: 180px;" class="issuuembed"></div>
<script type="text/javascript" src="//e.issuu.com/embed.js" async="true"></script>
| Code | Message |
|------|---------------------------|
| 009 | Authentication required |
| 010 | Invalid API key |
| 200 | Required field is missing |
| 201 | Invalid field format |