Sha256: 75f5576f34955543247e723a202fbe794e0237c58bab6aa7098e4295f7cf92ab
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
# typed: true # frozen_string_literal: true module WhatsappSdk module Api class Request extend T::Sig def initialize(client = WhatsappSdk.configuration.client) @client = client end 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 ) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems