PHP code example of johansatge / workflowy-php

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

    

johansatge / workflowy-php example snippets


 

use WorkFlowyPHP\WorkFlowy;
use WorkFlowyPHP\WorkFlowyException;
try
{
    $session_id = WorkFlowy::login('[email protected]', 'password');
}
catch (WorkFlowyException $e)
{
    var_dump($e->getMessage());
}

use WorkFlowyPHP\WorkFlowyList;

$list_request = new WorkFlowyList($session_id);
$list = $list_request->getList();