apis/piazza_api.rb
# Remove users in logins array from the course with uid
Remove users in logins array from the course with uid
Remove users in logins array from the course with uid
def remove_users(class_id, logins)
    remove_list = []
    logins.each do |login|
      remove_list << @users[login]
    end
    post_data = {
      "method": "network.update",
      "params": {  "remove_users": remove_list,
                   "id": class_id
                }
    }
    self.apiCall(post_data)
    sleep(10)
  end
def remove_users ( class_id , logins ) remove_list = [ ] logins . each do | login | remove_list << @users [ login ] end post_data = { "method" : "network.update" , "params" : { "remove_users" : remove_list , "id" : class_id } } self . apiCall ( post_data ) sleep ( 10 ) end
Remove users in logins array from the course with uid
Remove users in logins array from the course with uid
class_id
<not_specific>
logins
<not_specific>