WebService Integration
Web Service or Endpoint URLs provide a method to upload or download website data. The Free Snipping Tool now allows you to directly send upload requests to the web service of your choice. Given the varying nature of web services, we will use the example of a web service or endpoint URL as https://snippingtool.org/, assuming you are using PHP as the programming language. Our web service settings are configured as follows:
- Remote Address: The web service url that we are sending our snip to.
- Snip param name: Image name for post request
- Additional params file: Txt file that contains name=value pairs that carry additional data to our web service.
- Final Url (Optional): To get the picture link after upload.
service.php:
<?php
var_dump($_FILES);
var_dump($_POST);
?>
Web service response:
array(1) {
["image"]=>
array(5) {
["name"]=>
string(26) "capture_20221227162500.png"
["type"]=>
string(9) "text/html"
["tmp_name"]=>
string(14) "/tmp/php50zX97"
["error"]=>
int(0)
["size"]=>
int(2617)
}
}
array(2) {
["from"]=>
string(18) "Free Snipping Tool"
["date"]=>
string(10) "12/27/2022"
}