PHP code example of smtech / canvaspest

1. Go to this page and download the library: Download smtech/canvaspest 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/ */

    

smtech / canvaspest example snippets


"	"smtech/canvaspest": "1.*"
}

// GET, PUT, POST, DELETE are all supported
$obj = $api->get('users/self/profile');

$obj = $api->get('courses/123');
echo $obj['sis_course_id']; // array-style
echo $obj->title; // object-style

$arr = $api->get('/accounts/1/users');
foreach($arr as $obj) {
	echo $obj->name;
}

$arr = $api->get('accounts/1/courses');
echo $arr[1337]->title;