apis/piazza_api.rb
# change the course number for the course with class_id 
change the course number for the course with class_id
change the course number for the course with class_id
def update_course_number(class_id, new_number)
    post_data = {
      "method": "network.update",
      "params": { "id": class_id,
                  "course_number": new_number
                }
    }
    self.apiCall(post_data)
    sleep(10)  
  end
def update_course_number ( class_id , new_number ) post_data = { "method" : "network.update" , "params" : { "id" : class_id , "course_number" : new_number } } self . apiCall ( post_data ) sleep ( 10 ) end
change the course number for the course with class_id
change the course number for the course with class_id
class_id
<not_specific>
new_number
<not_specific>