Sha256: 2fca2e6e4dc31b8c41d3dffa5192e560f50c589d54668d8661afdde1f3293988

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

= Landslider

Ruby interface to Landslide's SOAP based API

== Pre-requisites

An account with Landslide that has the API enabled. (www.landslide.com)

== Resources

=== Dependencies

This gem requires the following gems:
	
	jeweler
	handsoap >= 1.1.8
	
	You also need to have either curb or httpclient on the load path.

== Install

	gem install landslider

== Usage

	Configuration:

	# constants to be set by rails environment config files
	LS_INSTANCE_NAME = 'jaytest'
	LS_API_USERNAME = 'XXXXXXXX@landslide.com'
	LS_API_PASSWORD = 'XXXXXXXX'
	LS_API_KEY =  Digest::MD5.hexdigest(LS_API_PASSWORD + LS_INSTANCE_NAME)
	LS_API_ENDPOINT = {
	  :uri => "https://#{LS_INSTANCE_NAME}.api.landslide.com/webservices/SoapService",
	  :version => 2
	}
	
	response = Landslider.login('LOGINTOKEN=' + LS_INSTANCE_NAME)
	
	response = Landslider.get_accounts(response[:session_id])
	
	response[:accounts].each do |account| 
		puts "id: #{account[:account_id]} name: #{account[:account_name]}"
	end

=== Supported API methods

	* login
	* getApiVersion
	* getAccounts
	* getAccountById
	* getAccountContacts
	* getAccountNotes
	* getAccountOpportunities
	* getContactNotes
	* getInstanceInformation
	* getLeads
	* getLeadNotes
	* getOpportunityNotes
	* getUserInformationById

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
landslider-0.4.4 README.rdoc
landslider-0.4.3 README.rdoc
landslider-0.4.2 README.rdoc
landslider-0.4.1 README.rdoc
landslider-0.4.0 README.rdoc
landslider-0.3.3 README.rdoc
landslider-0.3.2 README.rdoc