Sha256: 81253ba768d87c81d7ebdf71da1a56ace55fc6a5750b2c334b19a5f7048d9d86

Contents?: true

Size: 818 Bytes

Versions: 1

Compression:

Stored size: 818 Bytes

Contents

#!/usr/bin/env ruby

# LeadTune API Ruby Gem
#
# http://github.com/leadtune/leadtune-ruby
# Eric Wollesen (mailto:devs@leadtune.com)
# Copyright 2010 LeadTune LLC

require "rubygems"
require "pp"
require File.join(File.dirname(__FILE__), "../lib/leadtune")

begin
  p = Leadtune::Prospect.post do |p|
    p.organization = "LOL"
    p.username = "admin@loleads.com"
    p.password = "admin"
    # p.leadtune_host = "https://staging-appraiser.leadtune.com"
    # p.leadtune_host = "https://sandbox-appraiser.leadtune.com"
    p.leadtune_host = "http://localhost:8080"

    p.event = "offers_prepared"
    p.email = "test@example.com"
    p.target_buyers = ["AcmeU", "Bravo", "ConvU",]
  end
  pp p.factors
  `/bin/echo -n #{p.prospect_id} | pbcopy 2>&1 > /dev/null`
rescue Leadtune::LeadtuneError => e
  puts e.to_s
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
leadtune-0.0.7 spec/post.rb