Sha256: 4d744ccdcbc5daca3d3e7d280bbb98370aadee2c8c0aa5f31ac7f23b2c6486b2
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
# frozen_string_literal: true # Performs sender operation require_relative "termii" require_relative "client" module TermiiRuby class Sender < TermiiRuby::Termii def initialize(api_key) super() @client = TermiiRuby::Client.new(api_key) end def create_sender(sender_id, usecase, company) data = { sender_id: sender_id, usecase: usecase, company: company } @client.make_post_request(CREATE_SENDER, data) end def fetch_senders @client.make_get_request(FETCH_SENDER) end def verify; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
termii_ruby-0.1.0 | lib/termii_ruby/sender.rb |