dev-master
9999999-dev https://github.com/demonslay335/sketchy-apiSketchy PHP Wrapper
MIT
The Requires
- php >=5.3.0
- guzzlehttp/guzzle ^6.2.0
by Michael Gillespie
api php security wrapper sketchy
Wallogit.com
2017 © Pedro Peláez
Sketchy PHP Wrapper
PHP wrapper for Sketchy API., (*1)
API wrapper baseline code borrowed from VirusTotal API., (*2)
Include the following in your composer.json, (*3)
{
"require": {
"demonslay335/sketchy-api": "master"
}
}
composer update
capture('https://google.com');
var_dump($response);
?>
Sample output:, (*4)
array(10) {
["job_status"]=>
string(7) "CREATED"
["capture_status"]=>
NULL
["created_at"]=>
string(26) "2017-01-01 09:03:33.497800"
["html_url"]=>
NULL
["id"]=>
int(105)
["modified_at"]=>
string(4) "None"
["scrape_url"]=>
NULL
["sketch_url"]=>
NULL
["url"]=>
string(18) "https://google.com"
["url_response_code"]=>
NULL
}
retrieveCapture(105); var_dump($response); ?>
Note the token is automatically appended to returned URLs for static access., (*5)
Sample output:, (*6)
array(12) {
["job_status"]=>
string(9) "COMPLETED"
["retry"]=>
int(0)
["sketch_url"]=>
string(101) "https://yourserver.com/files/api.blockcypher.com_53627.png?token=your_token"
["capture_status"]=>
string(22) "LOCAL_CAPTURES_CREATED"
["url"]=>
string(45) "https://google.com"
["created_at"]=>
string(26) "2017-01-01 09:03:33.497800"
["modified_at"]=>
string(26) "2017-01-01 09:03:36.893800"
["html_url"]=>
string(102) "https://yourserver.com/files/google.com_53627.html?token=your_token"
["scrape_url"]=>
string(101) "https://yourserver.com/files/google.com_53627.txt?token=your_token"
["url_response_code"]=>
int(200)
["status_only"]=>
bool(false)
["id"]=>
int(1)
}
Sketchy PHP Wrapper
MIT
api php security wrapper sketchy