Jspreadsheet Cloud API
How to create a new spreadsheet
Section titled “How to create a new spreadsheet”Add a new spreadsheet in your Jspreadsheet Cloud or Private Cloud workspace.
PHP
<?phprequire 'vendor/autoload.php';
use jspreadsheet\Jspreadsheet;
// Access token$token = 'MSwzMTJmZWQzMWYyYTI1OWQ5OGVhMWYxOWNhMDNhYWY3ZTA2ZmVmMWQz';
// Create the client instance$client = new Jspreadsheet($token);
// Options for the new worksheet @See Jspreadsheet documentation for more options$options = [ 'minDimensions' => [10, 10]];
// Create a new worksheet$data = $client->create($options);
// Array ( [success] => 1 [token] => 5c609bcc-1b79-48a8-8f2c-5b89572c7d6f )NodeJS
import { Client } from '@intrasheets/client';
// Access tokenconst token = 'MSwzMTJmZWQzMWYyYTI1OWQ5OGVhMWYxOWNhMDNhYWY3ZTA2ZmVmMWQz';
// Create the client instance$client = new Jspreadsheet(token);
// Options for the new worksheet @See Jspreadsheet documentation for more optionsconst config = { minDimensions: [10, 10],};
// Create a new worksheetclient.create({ config }).then((newSpreadsheet) => { console.log(newSpreadsheet);});