PHP code example of sketcher-cloud-inc / php-sdk

1. Go to this page and download the library: Download sketcher-cloud-inc/php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sketcher-cloud-inc / php-sdk example snippets



// Call the main class this this
$Sketcher = new \Sketcher\SDK\Main;

// Define the defaults variables
$Sketcher->SetBaseUri("The API url");
$Sketcher->SetToken("You app token");

// Enjoy!
$Endpoints 		= $Sketcher->Request("GET", "/endpoints");
$SomeRequest 	= $Sketcher->Request("PUT", "/some-request", [
    "hello" => "world!"
]);