Sha256: 5af3f53b9ddcc2eb1c8714d2b460e96bd6b6730ce5625c601582180fe9240ffe
Contents?: true
Size: 865 Bytes
Versions: 4
Compression:
Stored size: 865 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
4 entries across 4 versions & 1 rubygems