lib/whatsapp_sdk/api/request.rb in whatsapp_sdk-0.9.0 vs lib/whatsapp_sdk/api/request.rb in whatsapp_sdk-0.9.1
- old
+ new
@@ -8,11 +8,11 @@
def initialize(client = WhatsappSdk.configuration.client)
@client = client
end
- def download_file(url:, content_header:, file_path: nil)
- @client.download_file(url: url, content_header: content_header, file_path: file_path)
+ def download_file(url:, content_type_header:, file_path: nil)
+ @client.download_file(url: url, content_type_header: content_type_header, file_path: file_path)
end
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, headers: headers