Priority Matrix - Main Class

class pm.PM(api_url, access_token)

This is the main Priority Matrix Class.

__init__(api_url, access_token)

Constructor of the Priority Matrix python API

Parameters:
  • api_url (string) – The URL of the API
  • access_token (string) – Our Acess token to connect with the API
api = None
createItem(json_code)

TBD

getCollaborators()

TBD

getCollaboratorsNames()

TBD

getComments(id)

TBD

getItems()

Returns a dicionary with all the items we have

:return:A item dictionary {key=item_name, object=Item} :rtype: dict

Note

At the creation of the PM object, it gets all the projects, and each project contains his items. So, if we want to get an item from a determined project, we dont need to call this function.

getMe()

TBD

getProjects()

Obtains all the projects and their items. Returns the a project dictionary.

Returns:a project dictionary {key=project_name, object=Project}
Return type:dict

Note

This function is called in the constructor of this class.

getUser(id)

TBD

getUsers()

TBD

item(id)

Gets the item with the specified ID

Parameters:id (int) – The item ID
Returns:Item object
Return type:Item
newItem(name)

TBD

project(project_name)

Returns the project with the specified name

Parameters:project_name (string) – The name of the project
Returns:The specified project
Return type:Project

Note

The project with the specified name must exists