Commit b7e5294e06aecf17629b4026c52ca75bcc270a8e

Authored by Tao Huang
1 parent e48d6b50
Exists in master

Add department get API

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
lib/dingtalk/api/department.rb
... ... @@ -17,6 +17,10 @@ module Dingtalk
17 17 http_get("delete?access_token=#{access_token}&id=#{id}")
18 18 end
19 19  
  20 + def get(id)
  21 + http_get("get?access_token=#{access_token}&id=#{id}")
  22 + end
  23 +
20 24 private
21 25 def base_url
22 26 'department'
... ...