PHP code example of kjgcoop / vikunja-api
1. Go to this page and download the library: Download kjgcoop/vikunja-api 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/ */
kjgcoop / vikunja-api example snippets
use Kjgcoop\Vikunja\VikunjaClient;
if (!isset($argv[1]) || $argv[1] == '' || !isset($argv[2]) || $argv[2] == '') {
die('Usage: '.$argv[0].' [project ID] [view ID]'.PHP_EOL);
} else {
$projectId = $argv[1];
$viewId = $argv[2];
}
$client = new VikunjaClient($config['vikunja_endpoint'], $config['vikunja_key']);
$buckets = $client->tasks()->forView($projectId, $viewId);
print_r($buckets);