lib/whatsapp_sdk/api/request.rb in whatsapp_sdk-0.6.1 vs lib/whatsapp_sdk/api/request.rb in whatsapp_sdk-0.6.2

- old
+ new

@@ -12,12 +12,12 @@ def download_file(url, path_to_file_name = nil) @client.download_file(url, path_to_file_name) end - def send_request(endpoint: nil, full_url: nil, http_method: "post", params: {}) + def send_request(endpoint: nil, full_url: nil, http_method: "post", params: {}, headers: {}) @client.send_request( - http_method: http_method, full_url: full_url, endpoint: endpoint, params: params + http_method: http_method, full_url: full_url, endpoint: endpoint, params: params, headers: headers ) end end end end