WebService Integration

Published: Last Modified:

WebService or Endpoints Urls are a way to upload or download data on websites. Free Snipping Tool now supports directly sending upload requests to the web service of your choice. As WebServices are different in nature, we will assume that the WebService or Endpoint Url as https://freesnippingtool.com/service.php and you are using PHP as a programming language. our Web Service setting looks like this.

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"
}