コード例 #1
0
ファイル: adept_lms.php プロジェクト: AdeptLMS/adept-wp
if (isset($_POST['class_meeting'])) {
    if ($adept_access_token_value == '') {
        $error = "Please enter authentication detail";
    } else {
        $url = $adept_api_url_value . 'meetings?access_token=' . $adept_access_token_value . '&account_id=' . $adept_account_id_value;
        $result = $adept->import_meeting($url);
        $success = $result;
    }
}
//meeting import code
if (isset($_POST['update_meeting'])) {
    if ($adept_access_token_value == '') {
        $error = "Please enter authentication detail";
    } else {
        $url = $adept_api_url_value . 'recent_meeting_updates?access_token=' . $adept_access_token_value . '&account_id=' . $adept_account_id_value;
        $result = $adept->update_meeting($url);
        $success = $result;
    }
}
if (isset($_POST['class_group'])) {
    if ($adept_access_token_value == '') {
        $error = "Please enter authentication detail";
    } else {
        $url = $adept_api_url_value . 'groups?access_token=' . $adept_access_token_value . '&account_id=' . $adept_account_id_value;
        $result = $adept->import_groups($url);
        $success = $result;
    }
}
if (isset($_POST['update_group'])) {
    if ($adept_access_token_value == '') {
        $error = "Please enter authentication detail";