module YolQyWeixin::Connection::Department

Public Instance Methods

department_list(department_id=0) click to toggle source
# File lib/yol_qy_weixin/connections/department.rb, line 4
def department_list(department_id=0)
  http_get(department_list_url(department_id))
end

Private Instance Methods

department_list_url(department_id) click to toggle source
# File lib/yol_qy_weixin/connections/department.rb, line 12
def department_list_url(department_id)
  "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=#{get_access_token}&id=#{department_id}"
end