-
-
Notifications
You must be signed in to change notification settings - Fork 102
Use the API
Stefan Zweifel edited this page Jan 16, 2015
·
7 revisions
To use the API, you must have an API key. Just sign up for an account at screeenly.com. You find your API key at the dashboard.
Next it's important to know that Screeenly doesn't store your screenshots forever. 12 hours after the creation of a screenshot, the file will be deleted on the server!
The base url for all API calls is http://screeenly.com/api/v1
.
Create a screenshot of a given URL.
keyname | type | validation | default value | description |
---|---|---|---|---|
key | string | required | Your Screeenly API Key | |
url | string | required | http://screeenly.com | Website which should be captured |
height | integer | optional | Height of screenshot | |
width | integer | optional | Width of screenshot viewport (300 equals mobile device) |
keyname | Description |
---|---|
path | Path to image file on Screeenly server |
base64 | Base64-string of image file. Can be used in src -Attribute of img -Tag (eg. <img src="$response->base64"> ) |
base64_raw | Base64-string of image file. Can be used, if you want to store the image directly to a file |
keyname | Description |
---|---|
title | Title message |
message | Description of accoured error |
Everything else than HTTP status 200 should be considered as an error!
HTTP Code | Description |
---|---|
200 | All is fine |
401 | Authorization failed. No or wrong API Key used |
400 | Validation Error, checkout the response message! |
500 | Something went wrong in the API |