Sha256: 1c57a3e9ccfc99cc0df83a350e58174e98d85eb30f052244c1c0a6dabc120764
Contents?: true
Size: 864 Bytes
Versions: 6
Compression:
Stored size: 864 Bytes
Contents
module Pardot module Objects module Emails def emails @emails ||= Emails.new self end class Emails def initialize client @client = client end def read_by_id id get "/do/read/id/#{id}" end def send_to_prospect prospect_id, params post "/do/send/prospect_id/#{prospect_id}", params end def send_to_list params post "/do/send", params end protected def get path, params = {}, result = "email" response = @client.get "email", path, params result ? response[result] : response end def post path, params = {}, result = "email" response = @client.post "email", path, params result ? response[result] : response end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems