Method: Wechat::Api::Client#get

Defined in:
lib/wechat/api/client.rb

#get(uri, params = {}) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/wechat/api/client.rb', line 49

def get(uri, params = {})
  with_access_token(uri, params) do |url, params_with_token|
    debug_request do
      connection.get do |req|
        req.url url, params_with_token
        req.headers[:accept] = 'application/json'
        req.headers[:content_type] = 'application/json'
      end
    end
  end
end