Exemplo n.º 1
0
<?php

require_once realpath(dirname(__FILE__) . '/../../config.php');
require_once "{$CFG->dirroot}/repository/morsle/lib.php";
$morsle = new repository_morsle(1);
//$status = $morsle->m_calendar();
$course = strtolower("'60301-ACCTG-250-A'");
// determine rosters for everything else based on visibility of course, removing students if not visible
$status = $morsle->m_maintain($course);
Exemplo n.º 2
0
<?php

require_once '../../config.php';
require_once "{$CFG->dirroot}/repository/morsle/lib.php";
require_once "{$CFG->dirroot}/google/lib.php";
$str = strtolower('65259-paid-111d-02');
$owner = '*****@*****.**';
//$owner = $str . '@luther.edu';
$title = $str . '-read';
$morsle = new repository_morsle();
//$morsle->get_token('drive');
$status = $morsle->m_maintain($str);
//$status = get_collection($title, $owner, $morsle);
/*
$file = "$CFG->dirroot/local/admissions/katie_deposited.csv";
$filetype = mimeinfo('type', "$CFG->dirroot/local/admissions/katie_deposited.csv");
$collectionid = '0B9-LjN6v5M_DMmFhZTY5YTUtODAzOS00ZDA3LWI4OGMtYTY4MDQ5ZjhjMWU4';
$success = send_file_togoogle($morsle, 'katie_deposited.csv', $file, $filetype, $collectionid);
* 
*/