Jspreadsheet Api

Create a new spreadsheet

Add a new spreadsheet in your Jspreadsheet Cloud workspace.
<?php
require '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  )