Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2362

Ability to fetch Course Summary file via core_course_get_courses webservice

$
0
0
by Nitin Jain.  

I have been trying to fetch course summary file through web-service externally.

i am using  "core_course_get_courses" but it doesn't return course summary file. See the below returned information.

Can we have this ability inside this web-service or is there any other option for this? can anyone suggest a possibility to get course summary files externally using webservices?


Return course details

Arguments
options (Default to "Array egg")
        options - operator OR is used

General structure

 Default to "Array
(
)
" //options - operator OR is used
object {
ids  Optional //List of course id. If empty return all courses
                                            except front page course.
list of (
int   //Course id
)}

XML-RPC (PHP structure)

[options] =>
    Array
        (
        [ids] =>
            Array
                (
                [0] => int
                )       
        )

REST (POST parameters)

options[ids][0]= int



Response

General structure

list of (
  //course
object {
id int   //course id
shortname string   //course short name
categoryid int   //category id
categorysortorder int  Optional //sort order into the category
fullname string   //full name
idnumber string  Optional //id number
summary string   //summary
summaryformat int   //summary format (1 = HTML, 0 = MOODLE, 2 = PLAIN or 4 = MARKDOWN)
format string   //course format: weeks, topics, social, site,..
showgrades int  Optional //1 if grades are shown, otherwise 0
newsitems int  Optional //number of recent items appearing on the course page
startdate int   //timestamp when the course start
numsections int  Optional //(deprecated, use courseformatoptions) number of weeks/topics
maxbytes int  Optional //largest size of file that can be uploaded into the course
showreports int  Optional //are activity report shown (yes = 1, no =0)
visible int  Optional //1: available to student, 0:not available
hiddensections int  Optional //(deprecated, use courseformatoptions) How the hidden sections in the course are displayed to students
groupmode int  Optional //no group, separate, visible
groupmodeforce int  Optional //1: yes, 0: no
defaultgroupingid int  Optional //default grouping id
timecreated int  Optional //timestamp when the course have been created
timemodified int  Optional //timestamp when the course have been modified
enablecompletion int  Optional //Enabled, control via completion and activity settings. Disbaled,
                                        not shown in activity settings.
completionnotify int  Optional //1: yes 0: no
lang string  Optional //forced course language
forcetheme string  Optional //name of the force theme
courseformatoptions  Optional //additional options for particular course format
list of (
object {
name string   //course format option name
value string   //course format option value
}
)}
)


Viewing all articles
Browse latest Browse all 2362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>