{"version":3,"sources":["webpack:///./src/components/tools-api-requests/screenshot-capture.tsx","webpack:///./src/pages/automation/create-screenshot/api-documentation.tsx"],"names":["ScreenshotCaptureAPI","className","id","href","no-index","ApiDocumentationTechStack","title","titleSmall","minHeight","items","to","name","active","subtitle"],"mappings":"4KAkNeA,G,UA/Mc,WAC3B,OACE,yBAAKC,UAAU,uBACb,wBAAIA,UAAU,kBAAkBC,GAAG,+BAAnC,sEAGA,4CACA,yBAAKD,UAAU,OACb,2BACE,0BAAMA,UAAU,WAAhB,QAAsC,IADxC,6EAKF,0CACA,+BACE,+BACE,4BACE,sCACA,+BAGJ,+BACE,4BACE,wBAAIA,UAAU,WAAd,gBACA,4BACE,uBAAGA,UAAU,aAAb,UACA,uBAAGA,UAAU,eACV,IADH,sCAEsC,IACpC,uBAAGA,UAAU,aAAaE,KAAK,sCAAsCC,YAAA,GAArE,WACW,KAJb,6CAYR,4CACA,+BACE,+BACE,4BACE,sCACA,+BAGJ,+BACE,4BACE,wBAAIH,UAAU,WAAd,UACA,4BACE,uBAAGA,UAAU,aAAb,UACA,uBAAGA,UAAU,eAAb,qCAGJ,4BACE,wBAAIA,UAAU,WAAd,WACA,4BACE,uBAAGA,UAAU,aAAb,YACA,uBAAGA,UAAU,eAAb,yCAGJ,4BACE,wBAAIA,UAAU,WAAd,SACA,4BACE,uBAAGA,UAAU,aAAb,qBACA,uBAAGA,UAAU,eAAb,6FAGA,uBAAGA,UAAU,eAAb,sCAGJ,4BACE,wBAAIA,UAAU,WAAd,YACA,4BACE,uBAAGA,UAAU,aAAb,sBACA,uHAGJ,4BACE,wBAAIA,UAAU,WAAd,WACA,4BACE,uBAAGA,UAAU,aAAb,qBACA,uBAAGA,UAAU,eAAb,gGAOR,uCACA,yBAAKA,UAAU,OACb,2BAAI,KACJ,uBAAGA,UAAU,UAAb,oCACA,uBAAGA,UAAU,UAAb,wIAIA,uBAAGA,UAAU,UAAb,eACA,uBAAGA,UAAU,UAAb,oBACA,uBAAGA,UAAU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D,CAAUC,MAAM,GAAGC,YAAU,EAACC,WAAS,EAACN,GAAG,6BACzC,kBAAC,IAAD,CACEO,MAAO,CACL,CACEC,GAAI,eACJC,KAAM,cACNC,QAAQ,GAEV,CACEF,GAAI,oCACJC,KAAM,uBACNC,QAAQ,GAEV,CACEF,GAAI,wBACJC,KAAM,WACNC,QAAQ,GAEV,CACEF,GAAI,iCACJC,KAAM,qBACNC,QAAQ,GAEV,CACEF,GAAI,kDACJC,KAAM,oBACNC,QAAQ,OAKhB,kBAAC,IAAD,CACEN,MAAM,uCACNO,SAAS,8DACTN,YAAU,EACVC,WAAS,EACTN,GAAG,8BAEL,kBAAC,IAAD,KACE,kBAAC,EAAD,U","file":"component---src-pages-automation-create-screenshot-api-documentation-tsx-4fddd2add6f6d734d011.js","sourcesContent":["import React from 'react';\nimport './styles.scss';\n\nconst ScreenshotCaptureAPI = () => {\n return (\n
\n

\n To make a request for Screenshot capture result use this POST API.\n

\n
HTTP Request
\n
\n        

\n POST{' '}\n https://api.hexomatic.com/tool-api/screenshot-capture?key={YOUR_API_KEY}\n

\n
\n
Parameters
\n \n \n \n \n \n \n \n \n \n \n \n \n \n
Fields
YOUR_API_KEY\n

string

\n

\n {' '}\n to get YOUR_API_KEY visit hexomatic{' '}\n \n settings{' '}\n \n API/Webhook section and copy your key\n

\n
\n
Request Body
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Fields
source\n

string

\n

you should provide a source URL

\n
devices\n

string[]

\n

you should provide array of devices

\n
delay\n

number (optional)

\n

\n The amount of time the tool waits before the screenshot capture. The default value is 5s.\n

\n

Available values: 5, 10, 15, 30.

\n
adBlock \n

boolean (optional)

\n

If provided true the tool will block ads before capturing. The default value is false.

\n
height \n

number (optional)

\n

\n If not specified the tool will take a full screenshot. The height should be given in px.\n

\n
\n
Example
\n
\n        

{'{'}

\n

\"source\": \"https://example.com\",

\n

\n \"devices\": [\"MOBILE_SMALL\", \"MOBILE_MEDIUM\", \"MOBILE_LARGE\", \"TABLET\", \"LAPTOP_SMALL\",\"LAPTOP_MEDIUM\",\n \"LAPTOP_LARGE\",\"DESKTOP_4K\"],\n

\n

\"delay\": 5,

\n

\"adBlock\": true,

\n

\"height\": 1000

\n

{'}'}

\n
\n
Response Body
\n

\n if request is successful you will get\n

\n
\n JSON representation\n
\n
\n        

{'{'}

\n

\"taskId\": \"13f4b463-7e8a-429a-b62b-4afde618a154\"

\n

{'}'}

\n
\n\n

\n if request is not successful you will get\n

\n
\n JSON representation\n
\n
\n        

{'{'}

\n

\"statusCode\": 403,

\n

\"message\": \"Forbidden\"

\n

{'}'}

\n
\n\n

\n To get the result for Screenshot capture use this GET API.\n

\n
HTTP Request
\n
\n        

\n GET{' '}\n https://api.hexomatic.com/tool-api/result/{TASK_ID}?key={YOUR_API_KEY}\n

\n
\n
Parameters
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Fields
YOUR_API_KEY\n

string

\n

\n {' '}\n to get YOUR_API_KEY visit hexomatic{' '}\n \n settings\n {' '}\n and API/Webhook section and copy your key\n

\n
TASK_ID\n

string

\n

\n {' '}\n if you did Screenshot capture POST request you must have received taskId that is valid\n one month after making the POST request. You can try to make this GET request with apx 5 minutes\n frequency after making the POST request for the tool.\n

\n
\n
Response Body
\n

if request is successful you will get

\n
\n JSON representation\n
\n
\n        

{'{'}

\n

\"result\": {'{'}

\n

\"_device_screenshot_tablet\": {'['}

\n

\n \"https://storage.googleapis.com/hexomatic-screenshot/screenshot-device-53b1e84f660ad853aef58ba761d97dfe-1644392413132.png\"\n

\n

{' ]'}

\n

{'}'}

\n

{'}'}

\n
\n

\n if request is not successful you will get\n

\n
\n JSON representation\n
\n
\n        

{'{'}

\n

\"statusCode\": 403,

\n

\"message\": \"Forbidden\"

\n

{'}'}

\n
\n
\n );\n};\n\nexport default ScreenshotCaptureAPI;\n","import React, {FC} from 'react';\nimport Section from '../../../components/section';\nimport {PageHero} from '../../../components/page-hero';\nimport Layout from '../../../components/layout/layout';\nimport Breadcrumb from '../../../components/breadcrumb';\nimport ScreenshotCaptureAPI from '../../../components/tools-api-requests/screenshot-capture';\n\nconst ApiDocumentationTechStack: FC = () => {\n return (\n \n \n \n \n \n
\n \n
\n
\n );\n};\n\nexport default ApiDocumentationTechStack;\n"],"sourceRoot":""}