Commit 86ac34a46039093cf6073f6ffb313d004d0af4f9

Authored by Jeff Lai
1 parent 7d070d4d
Exists in master

Fix bugs

lib/dingtalk/api/department.rb
... ... @@ -2,7 +2,7 @@ module Dingtalk
2 2 module Api
3 3 class Department < Base
4 4 def list
5   - http_get('list')
  5 + http_get("list?access_token=#{access_token}")
6 6 end
7 7  
8 8 private
... ...
lib/dingtalk/api/user.rb
... ... @@ -14,7 +14,7 @@ module Dingtalk
14 14 end
15 15  
16 16 def create(name, mobile, department = [1])
17   - parmas = {
  17 + params = {
18 18 name: name,
19 19 mobile: mobile,
20 20 department: department
... ...