Skip to content

Commit

Permalink
clean hard tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
j4y committed Oct 10, 2015
1 parent c4d0385 commit 944756f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions README.md
Expand Up @@ -9,21 +9,21 @@ Introduction
------------

This gem can be used to communicate with Landslide's SOAP-based API using ruby code.
[WSDL](https://instance_name.api.landslide.com/webservices/SoapService?wsdl) endpoint url: [https://instance_name.api.landslide.com/webservices/SoapService?wsdl](https://instance_name.api.landslide.com/webservices/SoapService?wsdl)

If you already have a landslide account, contact support to enable the API. You can also start a 30-day trial account [here](http://www.landslide.com/~jayp/en/trial).

Dependencies
------------

$ gem install jeweler curb handsoap
$ gem install jeweler curb handsoap

Installation
------------


$ gem install landslider
$ gem install landslider

Documentation
-------------
Expand All @@ -35,13 +35,13 @@ Configuration

There is a rake task to generate the configuration settings.

$ rake landslider:gen_config
$ rake landslider:gen_config

Example config:

LS_INSTANCE_NAME = 'jaytest'
LS_API_USERNAME = 'jaytest@example.com'
LS_API_KEY = '53308ccbdcb7f23fbd81a0b2ebcf12a4'
LS_INSTANCE_NAME = 'jaytest'
LS_API_USERNAME = 'jaytest@example.com'
LS_API_KEY = '53308ccbdcb7f23fbd81a0b2ebcf12a4'

The API key is simply an md5 hash of the password associated with the username used for the api concatenated with the instance name. "#{Digest::MD5.hexdigest(api_password + instance_name)}"

Expand All @@ -50,21 +50,21 @@ Usage

This is calling login to get a session id which is then used to get a list of accounts.

require 'landslider'
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
require 'landslider'
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


Testing
-------

The default rake task is set to run the tests.
$ rake
$ rake
Tests are needed here because the API uses a specific XML structure for requests and responses.


Expand All @@ -77,11 +77,11 @@ Contributing
4. Push to the branch (`git push origin my_markup`)
5. Create an [Issue][1] with a link to your branch
6. Enjoy a refreshing Diet Coke and wait
API methods
-----------

Here is a list of API methods that have been added:
Here is a list of API methods that have been added:

* addTask
* login
Expand Down

0 comments on commit 944756f

Please sign in to comment.