Module: Toggl::Api::Workspace

Included in:
Base
Defined in:
lib/toggl_api/api/workspace.rb

Instance Method Summary collapse

Instance Method Details

#get_workspace_clients(wid) ⇒ Object Also known as: workspace_clients



18
19
20
# File 'lib/toggl_api/api/workspace.rb', line 18

def get_workspace_clients(wid)
  get "/workspaces/#{wid}/clients"
end

#get_workspace_projects(wid, active = true) ⇒ Object Also known as: workspace_projects

the token owner must be workspace admin



24
25
26
# File 'lib/toggl_api/api/workspace.rb', line 24

def get_workspace_projects(wid, active=true)
  get "/workspaces/#{wid}/projects", {:active => active}
end

#get_workspace_tasks(wid, active = true) ⇒ Object Also known as: workspace_tasks



29
30
31
# File 'lib/toggl_api/api/workspace.rb', line 29

def get_workspace_tasks(wid, active=true)
  get "/workspaces/#{wid}/tasks", {:active => active}
end

#get_workspace_users(wid) ⇒ Object Also known as: workspace_users



13
14
15
# File 'lib/toggl_api/api/workspace.rb', line 13

def get_workspace_users(wid)
  get "/workspaces/#{wid}/users"
end

#workspacesObject

name: (string, required) premium: If it’s a pro workspace or not. Shows if someone is paying for the workspace or not (boolean, not required) at: timestamp that is sent in the response, indicates the time item was last updated



9
10
11
# File 'lib/toggl_api/api/workspace.rb', line 9

def workspaces
  get "/workspaces"
end