How to read completion criteria API to get course data.

How to read completion criteria API to get course data.

by Aniket Sankpal -
Number of replies: 1

I am using core_course_get_contents I want to know the activity restriction criteria.

I am getting something like this in availability

{\"op\":\"&\",\"showc\":[true],\"c\":[{\"type\":\"completion\",\"cm\":10889,\"e\":1}]}

{\"op\":\"&\",\"showc\":[true],\"c\":[{\"type\":\"completion\",\"cm\":9989,\"e\":1}]}


{\"op\":\"&\",\"c\":[{\"type\":\"grade\",\"id\":3410,\"min\":100}


How to read this? What does this mean?

Is this always different parameters in others?

What is the common structure of availability parameter?

Average of ratings: -