Method: Wechat::Concern::Draft#draft_batchget

Defined in:
lib/wechat/concern/draft.rb

#draft_batchget(offset, count, no_content: false) ⇒ Object



30
31
32
33
34
35
# File 'lib/wechat/concern/draft.rb', line 30

def draft_batchget(offset, count, no_content: false)
  draft_batchget_params_hash = { offset: offset,
                                 count: count,
                                 no_content: (no_content ? 1 : 0) }
  post 'draft/batchget', JSON.generate(draft_batchget_params_hash)
end