Sha256: 449a7106ecf9e20c04013ac41115b94633fae9d5a47c31060fc5982e954505cf
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
# frozen_string_literal: true require 'freshchat_whatsapp/actions/send_hsm_message' require 'freshchat_whatsapp/actions/check_message_status' module FreshchatWhatsapp class Api def initialize @base_path = FreshchatWhatsapp.configuration.base_path end def send_hsm_message(from_number, to_number, namespace, template_name, language, params) Actions::SendHsmMessage.new( client, from_number, to_number, namespace, template_name, language, params ).call end def check_message_status(request_id) Actions::CheckMessageStatus.new( client, request_id ).call end private attr_reader :base_path def client @client = FreshchatWhatsapp::Client.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
freshchat_whatsapp-0.1.2 | lib/freshchat_whatsapp/api.rb |
freshchat_whatsapp-0.1.1 | lib/freshchat_whatsapp/api.rb |
freshchat_whatsapp-0.1.0 | lib/freshchat_whatsapp/api.rb |