Commit cb0430d6934159b5ed3afc8c17b817a9be468175

Authored by Jeff Lai
1 parent b4ef8c04
Exists in master

Add dingtalk attendance api

lib/dingtalk/api/attendance.rb 0 → 100644
... ... @@ -0,0 +1,14 @@
  1 +module Dingtalk
  2 + module Api
  3 + class Attendance < Base
  4 + def list(params)
  5 + http_post("list?access_token=#{access_token}", params)
  6 + end
  7 +
  8 + private
  9 + def base_url
  10 + 'attendance'
  11 + end
  12 + end
  13 + end
  14 +end
... ...
lib/dingtalk/client.rb
... ... @@ -64,6 +64,10 @@ module Dingtalk
64 64 Api::User.new(@corp)
65 65 end
66 66  
  67 + def Attendance
  68 + Api::Attendance.new(@corp)
  69 + end
  70 +
67 71 def message
68 72 Api::Message.new(@corp)
69 73 end
... ...