Example #1
0
/**
 * Update list item opeation example
 * @param mixed $url 
 * @param mixed $username 
 * @param mixed $password 
 */
function updateTask($url, $username, $password)
{
    $client = new SPOClient($url);
    $client->signIn($username, $password);
    $listTitle = 'Tasks';
    $list = $client->getList($listTitle);
    $itemProperties = array('PercentComplete' => 1);
    $list->updateItem(2, $itemProperties);
}