apis/piazza_api.rb
# set course with class_id to active status
set course with class_id to active status
set course with class_id to active status
def activate_course(class_id)
    post_data = {
      "method": "network.update",
      "params": { "id": class_id,
                  "status": "active"
                }
    }
    self.apiCall(post_data)
    sleep(10)              
  end
def activate_course ( class_id ) post_data = { "method" : "network.update" , "params" : { "id" : class_id , "status" : "active" } } self . apiCall ( post_data ) sleep ( 10 ) end
set course with class_id to active status
set course with class_id to active status
class_id
<not_specific>