Module: KanbanpadAPI

Defined in:
lib/kanbanpad/kanbanpad-api.rb

Overview

Ruby lib for working with the Kanbanpad API’s XML interface.

You should set the authentication using your login credentials with HTTP Basic Authentication.

using email and user api key
KanbanpadAPI.authenticate('[email protected]', '70b4b722d55387286b817642289392a64d20b25e')

This library is a small wrapper around the REST interface.

Defined Under Namespace

Classes: Base, Error, Project, ProjectComment, Step, Task, TaskComment, TaskCommentCreator, TaskList

Class Method Summary collapse

Class Method Details

.authenticate(email, password) ⇒ Object

Sets up basic authentication credentials for all the resources.



20
21
22
23
24
25
# File 'lib/kanbanpad/kanbanpad-api.rb', line 20

def authenticate(email, password)
  @email    = email
  @password = password
  self::Base.user = email
  self::Base.password = password
end

.resourcesObject



27
28
29
# File 'lib/kanbanpad/kanbanpad-api.rb', line 27

def resources
  @resources ||= []
end