Sha256: 6c50004139fc3bb5c9bdea3703376699b57c191d9268dfb7b83609503be8b512
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true module WhatsappSdk module Api class Request API_VERSION = "v13.0" API_CLIENT = "https://graph.facebook.com/#{API_VERSION}/" def initialize(client) @client = client end 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: {}) @client.send_request( http_method: http_method, full_url: full_url, endpoint: endpoint, params: params ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whatsapp_sdk-0.2.0 | lib/whatsapp_sdk/api/request.rb |