build-embed-code-for-urls action endpoint

URL: /blogs/<id>/build-embed-code-for-urls.<format>

Supported Methods

POST Given an array of absolute URLs, will try to return a block of HTML that embeds the content represented by those URLs as sensibly as possible.

POST Request Object Type

This endpoint accepts the following properties in POST requests:

urls (array<string>)
(Required) An array of absolute URLs to attempt to transform.

Response Object Type

This endpoint returns an object with the following properties:

embedCode (string)
An HTML fragment that embeds the provided URLs. This string may contain untrustworthy HTML, so to avoid XSS vulnerabilities this should not be displayed in a sensitive context without sanitization.

Client Library Methods for PHP

Given an array of absolute URLs, will try to return a block of HTML that embeds the content represented by those URLs as sensibly as possible.
$tp->blogs->buildEmbedCodeForUrls(array(

    # Required Parameters
    "id" => $id,
    "payload" => $payload,

))