Sha256: 53f873b8f9ff0948c7ee27bb6051b87e98e16da3aeef01fa4004a7828073b584
Contents?: true
Size: 806 Bytes
Versions: 4
Compression:
Stored size: 806 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.new do |p| p.organization = "AcmeU" p.username = "admin@acme.edu" p.password = "admin" # p.leadtune_host = "http://localhost:8080" p.prospect_ref = "CRONIN" end p.get pp p.factors pp Leadtune::Prospect.new({:prospect_id => "4c92f8d6b34601dd5ecac030", :username => "admin@acme.edu", :password => "admin", :organization => "AcmeU",}).get.factors rescue Leadtune::LeadtuneError => e puts e.to_s end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
leadtune-0.0.4 | spec/get.rb |
leadtune-0.0.3 | spec/get.rb |
leadtune-0.0.2 | spec/get.rb |
leadtune-0.0.1 | spec/get.rb |