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