-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.cfml
23 lines (23 loc) · 629 Bytes
/
test.cfml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<title>ScreenshotsCloud Url Creation Example</title>
</head>
<body>
<cfinvoke
component="screenshotscloud"
method="screenshotUrl"
returnVariable="myScreenshotUrl"
>
<cfscript>
Options = {};
Options.url = "bbc.com/news";
Options.width = 1024;
Options.viewport_width = 1560;
</cfscript>
<cfinvokeargument name="apiKey" value="SCREENSHOTSCLOUD_KEY">
<cfinvokeargument name="apiSecret" value="SCREENSHOTSCLOUD_SECRET">
<cfinvokeargument name="options" value="#Options#">
</cfinvoke>
<cfoutput><a target="_blank" href="#myScreenshotUrl#">#myScreenshotUrl#</a></cfoutput>
</body>
</html>