apis/piazza_api.rb
# Add students in logins array to the course with class_id
Add students in logins array to the course with class_id
Add students in logins array to the course with class_id
def add_students(class_id, logins)
    add_list = []
    logins.each do |login|
      add_list << "#{login}@#{@mail_extn}"
    end
    post_data = {
      "method": "network.update",
      "params": { "from": "ClassSettingsPage",
                  "add_students": add_list,
                  "id": class_id
                }
    }
    self.apiCall(post_data)
    sleep(10)
  end
def add_students ( class_id , logins ) add_list = [ ] logins . each do | login | add_list << "#{login}@#{@mail_extn}" end post_data = { "method" : "network.update" , "params" : { "from" : "ClassSettingsPage" , "add_students" : add_list , "id" : class_id } } self . apiCall ( post_data ) sleep ( 10 ) end
Add students in logins array to the course with class_id
Add students in logins array to the course with class_id
class_id
<not_specific>
logins
<not_specific>