lib/whatsapp_sdk/api/request.rb in whatsapp_sdk-0.11.0 vs lib/whatsapp_sdk/api/request.rb in whatsapp_sdk-0.12.0
- old
+ new
@@ -12,12 +12,17 @@
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: {})
+ def send_request(endpoint: nil, full_url: nil, http_method: "post", params: {}, headers: {}, multipart: false)
@client.send_request(
- http_method: http_method, full_url: full_url, endpoint: endpoint, params: params, headers: headers
+ http_method: http_method,
+ full_url: full_url,
+ endpoint: endpoint,
+ params: params,
+ headers: headers,
+ multipart: multipart
)
end
end
end
end