Location: PHPKode > scripts > Active Collab script > tijsverkoyen-Active-Collab-13b0553/tests/index.php
<?php

// require
require_once 'config.php';
require_once '../active_collab.php';

// create instance
$ac = new ActiveCollab(KEY, URL);

// $response = $ac->info();
// $response = $ac->rolesSystem();
// $response = $ac->rolesProject();
// $response = $ac->rolesGet(8);
// $response = $ac->people();
// $response = $ac->peopleAddCompany('name ' . time());
// $response = $ac->peopleCompanyGet(5);
// $response = $ac->projects();
// $response = $ac->projectsAdd('name', 15);
// $response = $ac->projectsGet(45);
// $response = $ac->projectsPages(102);
// $response = $ac->projectsPagesAdd(102, time(), 'page created on ' . date('Y-m-d H:i:s'));
// $response = $ac->projectsPagesArchive(45, 5155);
// $response = $ac->projectsPagesEdit(45, 5155, '[edited]');
// $response = $ac->projectsPagesGet(102, 5553);
// $response = $ac->projectsPagesUnarchive(45, 5155);
// $response = $ac->projectsPeople(102);
// $response = $ac->projectsPeopleAdd(102, array(26), 7);
// $response = $ac->projectsPeopleUserChangePermissions(102, 26, 7);
// $response = $ac->projectsPeopleUserRemoveFromProject(102, 26);



// $response = $ac->projectsUserTasksGet(45);
// $response = $ac->projectsTickets(45);
// $response = $ac->projectsTasksAdd(45, 4786, 'just a body ' . time());
// $response = $ac->projectsTasksAdd(45, 4786, 'with priority' . time(), 1);
// $response = $ac->projectsTasksAdd(45, 4786, 'with due date' . time(), null, mktime(00, 00, 00, 12, 20, 2011));
// $response = $ac->projectsTasksAdd(45, 4786, 'with assignees' . time(), null, null, array(15), 15);

// $response = $ac->projectsObjectsSubscribe(102, array(26), 5553);
// Spoon::dump($response);
Return current item: Active Collab script