Module: Wework::Api::Methods::Batch

Included in:
Base
Defined in:
lib/wework/api/methods/batch.rb

Instance Method Summary collapse

Instance Method Details

#batch_getresult(job_id) ⇒ Object



17
18
19
# File 'lib/wework/api/methods/batch.rb', line 17

def batch_getresult job_id
  get 'batch/getresult', params: {jobid: job_id}
end

#batch_invite(user = [], party = [], tag = []) ⇒ Object



21
22
23
# File 'lib/wework/api/methods/batch.rb', line 21

def batch_invite user=[], party=[], tag=[]
  post 'batch/invite', {user: user, party: party, tag: tag}
end

#batch_replaceparty(media_id, callback_url = nil, token = nil, encodingaeskey = nil) ⇒ Object



13
14
15
# File 'lib/wework/api/methods/batch.rb', line 13

def batch_replaceparty media_id, callback_url=nil, token=nil, encodingaeskey=nil
  post 'batch/replaceparty', batch_params(media_id, callback_url, token, encodingaeskey)
end

#batch_replaceuser(media_id, callback_url = nil, token = nil, encodingaeskey = nil) ⇒ Object



9
10
11
# File 'lib/wework/api/methods/batch.rb', line 9

def batch_replaceuser media_id, callback_url=nil, token=nil, encodingaeskey=nil
  post 'batch/replaceuser', batch_params(media_id, callback_url, token, encodingaeskey)
end

#batch_syncuser(media_id, callback_url = nil, token = nil, encodingaeskey = nil) ⇒ Object



5
6
7
# File 'lib/wework/api/methods/batch.rb', line 5

def batch_syncuser media_id, callback_url=nil, token=nil, encodingaeskey=nil
  post 'batch/syncuser', batch_params(media_id, callback_url, token, encodingaeskey)
end