简体   繁体   中英

Blackboard SOAP web service php

I am using this library to do the development about blackboard web service.

I have successfully registered the proxy tool and make it available in the administrator panel.

The connection is built and function is able to be used. But When I call the saveColumns in Gradebook in Blackboard web service library,

$coursemember_detail = $blackboard->Gradebook("saveColumns",array('courseId'=>'_50_1','columnName'=>'testing'));

It returns

array(1) { ["@attributes"]=> array(1) { ["nil"]=> string(4) "true" } }

According to blackboard api library SP13 , it should return the ids of the columns.

Anyone knows the answer? Or anyone knows what problem is that? It will be great if you can provide me some advice and answer. Thanks!

The argument for this call should consist of 2 attributes courseId and columns . In the columns attribute you will need to describe your column as it will be shown in grade center. I haven't tested an array of columns, but for a single column that you want to create your code could look like this:

$params = array();
$params['courseId'] = '_50_1';
$params['columns'] = array(
        'columnName' => 'testing',
        'possible' => "100.0",
        "scorable"=> "true",
        "showStatsToStudent"=> "true",
        "visible"=> "true",
        "visibleInBook"=> "true",
    );

$id = $blackboard->Gradebook( "saveColumns", $params );

If everything is ok you will get a newly-created column id in return like this: _1326_1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM