Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

getWebVersion method

Вы здесь:

It is a method to get the link to the web version of the letter.

Sometimes it is useful to get a link to the web version of the letter. For example, you made a campaign and want to show how this email looks in a browser, or share it in social media, for this purpose you can use the getWebVersion API method.

Principle of use

Syntax and URL to call the method
getWebVersion ()
https://api.unisender.com/en/api/getWebVersion?format=json&api_key=KEY&campaign_id=ID
Arguments
api_key * API access key.
campaign_id * Identifier of the existing campaign.
format The display format obtains values of html | json, json is set by default (the html format is intended only for visual viewing of the result, the parser will not work in this format).
Return value
The object contains letter_id и web_letter_link.Example of the return value:

{
    "result": {
        "letter_id": 3769461,
        "web_letter_link": "https://cp.unisender.com/en/web_letter/
5ttopxkpedb3iy75rfaynjx71cu13xs4pmu7yrpsx7mwrbqm8bgdx
fbbo4akbn8x1"
    }
}