Sha256: 3fc2966f5ec82dc28f2343cf63fef52d4b22733d4e4ad8f434d973a470c25d51

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

module Wework
  module Api
    module Methods
      module User
        def user_create data={}
          post 'user/create', data
        end

        def user_get userid
          get 'user/get', params: {userid: userid}
        end

        def user_update userid, data={}
          post 'user/update', data.merge(userid: userid)
        end

        def user_delete userid
          get 'user/delete', params: {userid: userid}
        end

        def user_batchdelete useridlist=[]
          post 'user/batchdelete', {useridlist: useridlist}
        end

        def user_simplelist department_id, fetch_child=0
          get 'user/simplelist', params: {department_id: department_id, fetch_child: fetch_child}
        end

        def user_list department_id, fetch_child=0
          get 'user/list', params: {department_id: department_id, fetch_child: fetch_child}
        end

        def convert_to_openid userid
          post 'user/convert_to_openid', {userid: userid}
        end

        def convert_to_userid openid
          post 'user/convert_to_userid', {openid: openid}
        end

        def authsucc userid
          get 'user/authsucc', params: {userid: userid}
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wework-1.2.3 lib/wework/api/methods/user.rb
wework-1.2.2 lib/wework/api/methods/user.rb
wework-1.2.1 lib/wework/api/methods/user.rb
wework-1.2.0 lib/wework/api/methods/user.rb
wework-1.1.9 lib/wework/api/methods/user.rb
wework-1.1.8 lib/wework/api/methods/user.rb
wework-1.1.7 lib/wework/api/methods/user.rb
wework-1.1.6 lib/wework/api/methods/user.rb
wework-1.1.5 lib/wework/api/methods/user.rb