Class: Teambox::Base
- Inherits:
-
Object
- Object
- Teambox::Base
- Extended by:
- Forwardable
- Defined in:
- lib/teambox-client/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#account(query = {}) ⇒ Object
Account GET /api/1/account/.
-
#activities(query = {}) ⇒ Object
Activities indexes GET /api/1/activities.
-
#activity(id, query = {}) ⇒ Object
Activity show GET api/1/projects/:project_id/activities/:id.
-
#archive_project_task_list(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/:id/archive.
-
#convert_project_comment(project_id, id, query = {}) ⇒ Object
Comment convert POST /api/1/projects/:project_id/comments/:id/convert.
-
#create_project(query = {}) ⇒ Object
Project create POST /api/1/projects.
-
#create_project_comment(project_id, query = {}) ⇒ Object
Comment create POST /api/1/projects/:project_id/comments.
-
#create_project_conversation(project_id, query = {}) ⇒ Object
Conversation create POST /api/1/projects/:project_id/conversations.
-
#create_project_conversation_comment(project_id, conversation_id, query = {}) ⇒ Object
POST /api/1/projects/:project_id/conversations/:conversation_id/comments.
-
#create_project_invitation(project_id, query = {}) ⇒ Object
Invitation create POST /api/1/projects/:project_id/invitations.
-
#create_project_task_comment(project_id, task_id, query = {}) ⇒ Object
POST /api/1/projects/:project_id/tasks/:task_id/comments.
-
#create_project_task_list(project_id, query = {}) ⇒ Object
Task_list create POST /api/1/projects/:project_id/task_lists.
-
#create_project_task_list_task(project_id, task_list_id, query = {}) ⇒ Object
Task create POST /api/1/projects/:project_id/task_lists/:task_list_id/tasks.
-
#create_project_upload(project_id, query = {}) ⇒ Object
Upload create POST /api/1/projects/:project_id/uploads.
-
#delete_invitation(id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/invitations/:id.
-
#delete_project_comment(project_id, id, query = {}) ⇒ Object
Comment destroy DELETE /api/1/projects/:project_id/comments/:id.
-
#delete_project_conversation_comment(project_id, conversation_id, id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/conversations/:conversation_id/comments/:id.
-
#delete_project_task_comment(project_id, conversation_id, id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/tasks/:task_id/comments/:id.
-
#destroy_project(project_id, query = {}) ⇒ Object
Project destroy DELETE /api/1/projects/:id.
-
#destroy_project_conversation(project_id, id, query = {}) ⇒ Object
Conversation destroy DELETE /api/1/projects/:project_id/conversations/:id.
-
#destroy_project_person(project_id, id, query = {}) ⇒ Object
Person destroy DELETE /api/1/projects/:project_id/people/:id.
-
#destroy_project_task(project_id, id, query = {}) ⇒ Object
Task destroy DELETE /api/1/projects/:project_id/tasks/:id.
-
#destroy_project_task_list(project_id, id, query = {}) ⇒ Object
Task_list destroy DELETE /api/1/projects/:project_id/task_lists/:id.
-
#destroy_project_task_list_task(project_id, task_list_id, id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/task_lists/:task_list_id/tasks/:id.
-
#destroy_project_upload(project_id, id, query = {}) ⇒ Object
Upload destroy DELETE /api/1/projects/:project_id/uploads/:id.
-
#destroy_task(id, query = {}) ⇒ Object
DELETE /api/1/tasks/:id.
-
#initialize(client) ⇒ Base
constructor
A new instance of Base.
-
#invitaiton_accept(id, query = {}) ⇒ Object
Invition accept PUT /api/1/invitations/:id/accept.
-
#invitation(id, query = {}) ⇒ Object
Invitaiton show GET /api/1/invitations/:id.
-
#invitations(query = {}) ⇒ Object
Invitation indexes GET /api/1/invitations/:id.
-
#project(project_id, query = {}) ⇒ Object
Project show GET /api/1/projects/:id.
-
#project_activities(project_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/activities.
-
#project_activity(project_id, id, query = {}) ⇒ Object
GET /api/1/activities/:id.
-
#project_comment(project_id, id, query = {}) ⇒ Object
Comments show GET /api/1/projects/:project_id/comments/:id.
-
#project_comments(project_id, query = {}) ⇒ Object
Comments index GET /api/1/projects/:project_id/comments.
-
#project_conversation(project_id, id, query = {}) ⇒ Object
Conversation show GET /api/1/projects/:project_id/conversations/:id.
-
#project_conversation_comment(project_id, conversation_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/conversations/:conversation_id/comments/:id.
-
#project_conversation_comments(project_id, conversation_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/conversations/:conversation_id/comments.
-
#project_conversations(project_id, query = {}) ⇒ Object
Conversations index GET /api/1/projects/:project_id/conversations.
-
#project_invitation(project_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/invitations/:id.
-
#project_invitation_resend(project_id, id, query = {}) ⇒ Object
Invitation resend PUT /api/1/projects/:project_id/invitations/:id/resend.
-
#project_invitations(project_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/invitations.
-
#project_people(project_id, query = {}) ⇒ Object
People index GET /api/1/projects/:project_id/people.
-
#project_person(project_id, id, query = {}) ⇒ Object
Person show GET /api/1/projects/:project_id/people/:id.
-
#project_task(project_id, id, query = {}) ⇒ Object
Task show GET /api/1/projects/:project_id/tasks/:id.
-
#project_task_comment(project_id, task_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/tasks/:task_id/comments/:id.
-
#project_task_comments(project_id, task_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/tasks/:task_id/comments.
-
#project_task_list(project_id, id, query = {}) ⇒ Object
Task_list show GET /api/1/projects/:project_id/task_lists/:id.
-
#project_task_list_task(project_id, task_list_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/task_lists/:task_list_id/tasks/:id.
-
#project_task_list_tasks(project_id, task_list_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/task_lists/:task_list_id/tasks.
-
#project_task_lists(project_id, query = {}) ⇒ Object
Task_lists index GET /api/1/projects/:project_id/task_lists.
-
#project_tasks(project_id, query = {}) ⇒ Object
Tasks indexes GET /api/1/projects/:project_id/tasks.
-
#project_upload(project_id, id, query = {}) ⇒ Object
Upload show GET /api/1/projects/:project_id/uploads/:id.
-
#project_uploads(project_id, query = {}) ⇒ Object
Uploads index GET /api/1/projects/:project_id/uploads.
-
#projects(query = {}) ⇒ Object
Projects index GET /api/1/projects.
-
#reorder_project_task_list(project_id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/reorder.
-
#reorder_project_tasks(id, query = {}) ⇒ Object
Task reorder PUT /api/1/projects/:project_id/tasks/reorder.
-
#task(id, query = {}) ⇒ Object
GET /api/1/tasks/:id.
-
#tasks(query = {}) ⇒ Object
GET /api/1/tasks.
-
#transfer_project(project_id, query = {}) ⇒ Object
PUT /api/1/projects/:id/transfer.
-
#unarchive_project_task_list(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/:id/unarchive.
-
#unwatch_project_conversation(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/conversations/:id/unwatch.
-
#unwatch_project_task(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/tasks/:id/unwatch.
-
#unwatch_task(id, query = {}) ⇒ Object
PUT /api/1/tasks/:id/unwatch.
-
#update_project(project_id, query = {}) ⇒ Object
Project update PUT /api/1/projects/:id.
-
#update_project_comment(project_id, id, query = {}) ⇒ Object
Comment update PUT /api/1/projects/:project_id/comments/:id.
-
#update_project_conversation(project_id, id, query = {}) ⇒ Object
Conversation update PUT /api/1/projects/:project_id/conversations/:id.
-
#update_project_conversation_comment(project_id, conversation_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/conversations/:conversation_id/comments/:id.
-
#update_project_person(project_id, id, query = {}) ⇒ Object
Person update PUT /api/1/projects/:project_id/people/:id.
-
#update_project_task(project_id, id, query = {}) ⇒ Object
Task update PUT /api/1/projects/:project_id/tasks/:id.
-
#update_project_task_comment(project_id, task_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/tasks/:task_id/comments/:id.
-
#update_project_task_list(project_id, id, query = {}) ⇒ Object
Task_list update PUT /api/1/projects/:project_id/task_lists/:id.
-
#update_project_task_list_task(project_id, task_list_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/:task_list_id/tasks/:id.
-
#update_task(id, query = {}) ⇒ Object
PUT /api/1/tasks/:id.
-
#user(id, query = {}) ⇒ Object
User show GET /api/1/users/:id.
-
#users(query = {}) ⇒ Object
Users index GET /api/1/users.
-
#watch_project_conversation(project_id, id, query = {}) ⇒ Object
Conversations watch PUT /api/1/projects/:project_id/conversations/:id/watch.
-
#watch_project_task(project_id, id, query = {}) ⇒ Object
Task watch PUT /api/1/projects/:project_id/tasks/:id/watch.
-
#watch_task(id, query = {}) ⇒ Object
PUT /api/1/tasks/:id/watch.
Constructor Details
#initialize(client) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/teambox-client/base.rb', line 9 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/teambox-client/base.rb', line 7 def client @client end |
Instance Method Details
#account(query = {}) ⇒ Object
Account GET /api/1/account/
390 391 392 |
# File 'lib/teambox-client/base.rb', line 390 def account(query={}) perform_get("/api/1/account", :query => query) end |
#activities(query = {}) ⇒ Object
Activities indexes
GET /api/1/activities
19 20 21 |
# File 'lib/teambox-client/base.rb', line 19 def activities(query={}) perform_get("/api/1/activities", :query => query) end |
#activity(id, query = {}) ⇒ Object
Activity show GET api/1/projects/:project_id/activities/:id
28 29 30 |
# File 'lib/teambox-client/base.rb', line 28 def activity(id, query={}) perform_get("/api/1/activities/#{id}", :query => query) end |
#archive_project_task_list(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/:id/archive
258 259 260 |
# File 'lib/teambox-client/base.rb', line 258 def archive_project_task_list(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/task_lists/#{id}/archive", :query => query) end |
#convert_project_comment(project_id, id, query = {}) ⇒ Object
Comment convert POST /api/1/projects/:project_id/comments/:id/convert
88 89 90 |
# File 'lib/teambox-client/base.rb', line 88 def convert_project_comment(project_id, id, query={}) perform_post("/api/1/projects/#{project_id}/comments/#{id}/convert", :body => {:comment => query}) end |
#create_project(query = {}) ⇒ Object
Project create POST /api/1/projects
234 235 236 |
# File 'lib/teambox-client/base.rb', line 234 def create_project(query={}) perform_post("/api/1/projects", :body => {:project => query}) end |
#create_project_comment(project_id, query = {}) ⇒ Object
Comment create POST /api/1/projects/:project_id/comments
63 64 65 66 67 68 69 |
# File 'lib/teambox-client/base.rb', line 63 def create_project_comment(project_id, query={}) if include_file?(query) perform_post("/api/1/projects/#{project_id}/comments", build_multipart_bodies({:comment => query}) ) else perform_post("/api/1/projects/#{project_id}/comments", :body => {:comment => query}) end end |
#create_project_conversation(project_id, query = {}) ⇒ Object
Conversation create POST /api/1/projects/:project_id/conversations
148 149 150 |
# File 'lib/teambox-client/base.rb', line 148 def create_project_conversation(project_id, query={}) perform_post("/api/1/projects/#{project_id}/conversations", :body => {:conversation => query}) end |
#create_project_conversation_comment(project_id, conversation_id, query = {}) ⇒ Object
POST /api/1/projects/:project_id/conversations/:conversation_id/comments
79 80 81 82 83 84 85 |
# File 'lib/teambox-client/base.rb', line 79 def create_project_conversation_comment(project_id, conversation_id, query={}) if include_file?(query) perform_post("/api/1/projects/#{project_id}/conversations/#{conversation_id}/comments", build_multipart_bodies({:comment => query}) ) else perform_post("/api/1/projects/#{project_id}/conversations/#{conversation_id}/comments", :body => {:comment => query}) end end |
#create_project_invitation(project_id, query = {}) ⇒ Object
Invitation create POST /api/1/projects/:project_id/invitations
172 173 174 |
# File 'lib/teambox-client/base.rb', line 172 def create_project_invitation(project_id, query={}) perform_post("/api/1/projects/#{project_id}/invitations", :query => query) end |
#create_project_task_comment(project_id, task_id, query = {}) ⇒ Object
POST /api/1/projects/:project_id/tasks/:task_id/comments
71 72 73 74 75 76 77 |
# File 'lib/teambox-client/base.rb', line 71 def create_project_task_comment(project_id, task_id, query={}) if include_file?(query) perform_post("/api/1/projects/#{project_id}/tasks/#{task_id}/comments", build_multipart_bodies({:comment => query}) ) else perform_post("/api/1/projects/#{project_id}/tasks/#{task_id}/comments", :body => {:comment => query}) end end |
#create_project_task_list(project_id, query = {}) ⇒ Object
Task_list create POST /api/1/projects/:project_id/task_lists
271 272 273 |
# File 'lib/teambox-client/base.rb', line 271 def create_project_task_list(project_id, query={}) perform_post("/api/1/projects/#{project_id}/task_lists", :body => {:task_lists => query}) end |
#create_project_task_list_task(project_id, task_list_id, query = {}) ⇒ Object
Task create POST /api/1/projects/:project_id/task_lists/:task_list_id/tasks
307 308 309 |
# File 'lib/teambox-client/base.rb', line 307 def create_project_task_list_task(project_id, task_list_id, query={}) perform_post("/api/1/projects/#{project_id}/task_lists/#{task_list_id}/tasks", :body => {:task => query}) end |
#create_project_upload(project_id, query = {}) ⇒ Object
Upload create POST /api/1/projects/:project_id/uploads
370 371 372 |
# File 'lib/teambox-client/base.rb', line 370 def create_project_upload(project_id, query={}) perform_post("/api/1/projects/#{project_id}/uploads", build_multipart_bodies({:upload => query}) ) end |
#delete_invitation(id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/invitations/:id
153 154 155 |
# File 'lib/teambox-client/base.rb', line 153 def delete_invitation(id, query={}) perform_delete("/api/1/invitations/#{id}", :query => query) end |
#delete_project_comment(project_id, id, query = {}) ⇒ Object
Comment destroy DELETE /api/1/projects/:project_id/comments/:id
106 107 108 |
# File 'lib/teambox-client/base.rb', line 106 def delete_project_comment(project_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/comments/#{id}", :query => query) end |
#delete_project_conversation_comment(project_id, conversation_id, id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/conversations/:conversation_id/comments/:id
110 111 112 |
# File 'lib/teambox-client/base.rb', line 110 def delete_project_conversation_comment(project_id, conversation_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/conversations/#{conversation_id}/comments/#{id}", :query => query) end |
#delete_project_task_comment(project_id, conversation_id, id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/tasks/:task_id/comments/:id
114 115 116 |
# File 'lib/teambox-client/base.rb', line 114 def delete_project_task_comment(project_id, conversation_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/tasks/#{task_id}/comments/#{id}", :query => query) end |
#destroy_project(project_id, query = {}) ⇒ Object
Project destroy DELETE /api/1/projects/:id
239 240 241 |
# File 'lib/teambox-client/base.rb', line 239 def destroy_project(project_id, query={}) perform_delete("/api/1/projects/#{project_id}", :query => query) end |
#destroy_project_conversation(project_id, id, query = {}) ⇒ Object
Conversation destroy DELETE /api/1/projects/:project_id/conversations/:id
133 134 135 |
# File 'lib/teambox-client/base.rb', line 133 def destroy_project_conversation(project_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/conversations/#{id}", :query => query) end |
#destroy_project_person(project_id, id, query = {}) ⇒ Object
Person destroy DELETE /api/1/projects/:project_id/people/:id
210 211 212 |
# File 'lib/teambox-client/base.rb', line 210 def destroy_project_person(project_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/people/#{id}", :query => query) end |
#destroy_project_task(project_id, id, query = {}) ⇒ Object
Task destroy DELETE /api/1/projects/:project_id/tasks/:id
347 348 349 |
# File 'lib/teambox-client/base.rb', line 347 def destroy_project_task(project_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/tasks/#{id}", :query => query) end |
#destroy_project_task_list(project_id, id, query = {}) ⇒ Object
Task_list destroy DELETE /api/1/projects/:project_id/task_lists/:id
276 277 278 |
# File 'lib/teambox-client/base.rb', line 276 def destroy_project_task_list(project_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/task_lists/#{id}", :query => query) end |
#destroy_project_task_list_task(project_id, task_list_id, id, query = {}) ⇒ Object
DELETE /api/1/projects/:project_id/task_lists/:task_list_id/tasks/:id
351 352 353 |
# File 'lib/teambox-client/base.rb', line 351 def destroy_project_task_list_task(project_id, task_list_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/task_lists/#{task_list_id}/tasks/#{id}", :query => query) end |
#destroy_project_upload(project_id, id, query = {}) ⇒ Object
Upload destroy DELETE /api/1/projects/:project_id/uploads/:id
375 376 377 |
# File 'lib/teambox-client/base.rb', line 375 def destroy_project_upload(project_id, id, query={}) perform_delete("/api/1/projects/#{project_id}/uploads/#{id}", :query => query) end |
#destroy_task(id, query = {}) ⇒ Object
DELETE /api/1/tasks/:id
355 356 357 |
# File 'lib/teambox-client/base.rb', line 355 def destroy_task(id, query={}) perform_delete("/api/1/tasks/#{id}", :query => query) end |
#invitaiton_accept(id, query = {}) ⇒ Object
Invition accept PUT /api/1/invitations/:id/accept
162 163 164 |
# File 'lib/teambox-client/base.rb', line 162 def invitaiton_accept(id, query={}) perform_put("/api/1/invitations/#{id}", :query => query) end |
#invitation(id, query = {}) ⇒ Object
Invitaiton show GET /api/1/invitations/:id
186 187 188 |
# File 'lib/teambox-client/base.rb', line 186 def invitation(id, query={}) perform_get("/api/1/invitations/#{id}", :query => query) end |
#invitations(query = {}) ⇒ Object
Invitation indexes GET /api/1/invitations/:id
177 178 179 |
# File 'lib/teambox-client/base.rb', line 177 def invitations(query={}) perform_get("/api/1/invitations", :query => query) end |
#project(project_id, query = {}) ⇒ Object
Project show GET /api/1/projects/:id
220 221 222 |
# File 'lib/teambox-client/base.rb', line 220 def project(project_id, query={}) perform_get("/api/1/projects/#{project_id}", :query => query) end |
#project_activities(project_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/activities
23 24 25 |
# File 'lib/teambox-client/base.rb', line 23 def project_activities(project_id, query={}) perform_get("/api/1/projects/#{project_id}/activities", :query => query) end |
#project_activity(project_id, id, query = {}) ⇒ Object
GET /api/1/activities/:id
32 33 34 |
# File 'lib/teambox-client/base.rb', line 32 def project_activity(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/activities/#{id}", :query => query) end |
#project_comment(project_id, id, query = {}) ⇒ Object
Comments show GET /api/1/projects/:project_id/comments/:id
37 38 39 |
# File 'lib/teambox-client/base.rb', line 37 def project_comment(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/comments/#{id}", :query => query) end |
#project_comments(project_id, query = {}) ⇒ Object
Comments index GET /api/1/projects/:project_id/comments
50 51 52 |
# File 'lib/teambox-client/base.rb', line 50 def project_comments(project_id, query={}) perform_get("/api/1/projects/#{project_id}/comments", :query => query) end |
#project_conversation(project_id, id, query = {}) ⇒ Object
Conversation show GET /api/1/projects/:project_id/conversations/:id
138 139 140 |
# File 'lib/teambox-client/base.rb', line 138 def project_conversation(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/conversations/#{id}", :query => query) end |
#project_conversation_comment(project_id, conversation_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/conversations/:conversation_id/comments/:id
45 46 47 |
# File 'lib/teambox-client/base.rb', line 45 def project_conversation_comment(project_id, conversation_id, id, query={}) perform_get("/api/1/projects/#{project_id}/tasks/#{conversation_id}/comments/#{id}", :query => query) end |
#project_conversation_comments(project_id, conversation_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/conversations/:conversation_id/comments
54 55 56 |
# File 'lib/teambox-client/base.rb', line 54 def project_conversation_comments(project_id, conversation_id, query={}) perform_get("/api/1/projects/#{project_id}/conversations/#{conversation_id}/comments", :query => query) end |
#project_conversations(project_id, query = {}) ⇒ Object
Conversations index GET /api/1/projects/:project_id/conversations
143 144 145 |
# File 'lib/teambox-client/base.rb', line 143 def project_conversations(project_id, query={}) perform_get("/api/1/projects/#{project_id}/conversations", :query => query) end |
#project_invitation(project_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/invitations/:id
190 191 192 |
# File 'lib/teambox-client/base.rb', line 190 def project_invitation(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/invitations/#{id}", :query => query) end |
#project_invitation_resend(project_id, id, query = {}) ⇒ Object
Invitation resend PUT /api/1/projects/:project_id/invitations/:id/resend
167 168 169 |
# File 'lib/teambox-client/base.rb', line 167 def project_invitation_resend(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/invitations/#{id}/resend", :query => query) end |
#project_invitations(project_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/invitations
181 182 183 |
# File 'lib/teambox-client/base.rb', line 181 def project_invitations(project_id, query={}) perform_get("/api/1/projects/#{project_id}/invitations", :query => query) end |
#project_people(project_id, query = {}) ⇒ Object
People index GET /api/1/projects/:project_id/people
195 196 197 |
# File 'lib/teambox-client/base.rb', line 195 def project_people(project_id, query={}) perform_get("/api/1/projects/#{project_id}/people", :query => query) end |
#project_person(project_id, id, query = {}) ⇒ Object
Person show GET /api/1/projects/:project_id/people/:id
200 201 202 |
# File 'lib/teambox-client/base.rb', line 200 def project_person(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/people/#{id}", :query => query) end |
#project_task(project_id, id, query = {}) ⇒ Object
Task show GET /api/1/projects/:project_id/tasks/:id
294 295 296 |
# File 'lib/teambox-client/base.rb', line 294 def project_task(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/tasks/#{id}", :query => query) end |
#project_task_comment(project_id, task_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/tasks/:task_id/comments/:id
41 42 43 |
# File 'lib/teambox-client/base.rb', line 41 def project_task_comment(project_id, task_id, id, query={}) perform_get("/api/1/projects/#{project_id}/tasks/#{task_id}/comments/#{id}", :query => query) end |
#project_task_comments(project_id, task_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/tasks/:task_id/comments
58 59 60 |
# File 'lib/teambox-client/base.rb', line 58 def project_task_comments(project_id, task_id, query={}) perform_get("/api/1/projects/#{project_id}/tasks/#{task_id}/comments", :query => query) end |
#project_task_list(project_id, id, query = {}) ⇒ Object
Task_list show GET /api/1/projects/:project_id/task_lists/:id
249 250 251 |
# File 'lib/teambox-client/base.rb', line 249 def project_task_list(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/task_lists/#{id}", :query => query) end |
#project_task_list_task(project_id, task_list_id, id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/task_lists/:task_list_id/tasks/:id
298 299 300 |
# File 'lib/teambox-client/base.rb', line 298 def project_task_list_task(project_id, task_list_id, id, query={}) perform_get("/api/1/projects/#{project_id}/task_lists/#{task_list_id}/tasks/#{id}", :query => query) end |
#project_task_list_tasks(project_id, task_list_id, query = {}) ⇒ Object
GET /api/1/projects/:project_id/task_lists/:task_list_id/tasks
285 286 287 |
# File 'lib/teambox-client/base.rb', line 285 def project_task_list_tasks(project_id, task_list_id, query={}) perform_get("/api/1/projects/#{project_id}/task_lists/#{task_list_id}/tasks", :query => query) end |
#project_task_lists(project_id, query = {}) ⇒ Object
Task_lists index GET /api/1/projects/:project_id/task_lists
244 245 246 |
# File 'lib/teambox-client/base.rb', line 244 def project_task_lists(project_id, query={}) perform_get("/api/1/projects/#{project_id}/task_lists", :query => query) end |
#project_tasks(project_id, query = {}) ⇒ Object
Tasks indexes GET /api/1/projects/:project_id/tasks
281 282 283 |
# File 'lib/teambox-client/base.rb', line 281 def project_tasks(project_id, query={}) perform_get("/api/1/projects/#{project_id}/tasks", :query => query) end |
#project_upload(project_id, id, query = {}) ⇒ Object
Upload show GET /api/1/projects/:project_id/uploads/:id
365 366 367 |
# File 'lib/teambox-client/base.rb', line 365 def project_upload(project_id, id, query={}) perform_get("/api/1/projects/#{project_id}/uploads/#{id}", :query => query) end |
#project_uploads(project_id, query = {}) ⇒ Object
Uploads index GET /api/1/projects/:project_id/uploads
360 361 362 |
# File 'lib/teambox-client/base.rb', line 360 def project_uploads(project_id, query={}) perform_get("/api/1/projects/#{project_id}/uploads", :query => query) end |
#projects(query = {}) ⇒ Object
Projects index GET /api/1/projects
215 216 217 |
# File 'lib/teambox-client/base.rb', line 215 def projects(query={}) perform_get("/api/1/projects", :query => query) end |
#reorder_project_task_list(project_id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/reorder
266 267 268 |
# File 'lib/teambox-client/base.rb', line 266 def reorder_project_task_list(project_id, query={}) perform_put("/api/1/projects/#{project_id}/task_lists/reorder", :query => query) end |
#reorder_project_tasks(id, query = {}) ⇒ Object
Task reorder PUT /api/1/projects/:project_id/tasks/reorder
342 343 344 |
# File 'lib/teambox-client/base.rb', line 342 def reorder_project_tasks(id, query={}) perform_put("/api/1/projects/#{project_id}/tasks/reorder", :query => query) end |
#task(id, query = {}) ⇒ Object
GET /api/1/tasks/:id
302 303 304 |
# File 'lib/teambox-client/base.rb', line 302 def task(id, query={}) perform_get("/api/1/tasks/#{id}", :query => query) end |
#tasks(query = {}) ⇒ Object
GET /api/1/tasks
289 290 291 |
# File 'lib/teambox-client/base.rb', line 289 def tasks(query={}) perform_get("/api/1/tasks", :query => query) end |
#transfer_project(project_id, query = {}) ⇒ Object
PUT /api/1/projects/:id/transfer
229 230 231 |
# File 'lib/teambox-client/base.rb', line 229 def transfer_project(project_id, query={}) perform_put("/api/1/projects/#{project_id}/transfer", :body => {:project => query}) end |
#unarchive_project_task_list(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/:id/unarchive
262 263 264 |
# File 'lib/teambox-client/base.rb', line 262 def unarchive_project_task_list(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/task_lists/#{id}/unarchive", :query => query) end |
#unwatch_project_conversation(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/conversations/:id/unwatch
123 124 125 |
# File 'lib/teambox-client/base.rb', line 123 def unwatch_project_conversation(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/conversations/#{id}/unwatch", :query => query) end |
#unwatch_project_task(project_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/tasks/:id/unwatch
333 334 335 |
# File 'lib/teambox-client/base.rb', line 333 def unwatch_project_task(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/tasks/#{id}/unwatch", :query => query) end |
#unwatch_task(id, query = {}) ⇒ Object
PUT /api/1/tasks/:id/unwatch
337 338 339 |
# File 'lib/teambox-client/base.rb', line 337 def unwatch_task(id, query={}) perform_put("/api/1/tasks/#{id}/unwatch", :query => query) end |
#update_project(project_id, query = {}) ⇒ Object
Project update PUT /api/1/projects/:id
225 226 227 |
# File 'lib/teambox-client/base.rb', line 225 def update_project(project_id, query={}) perform_put("/api/1/projects/#{project_id}", :body => {:project => query}) end |
#update_project_comment(project_id, id, query = {}) ⇒ Object
Comment update PUT /api/1/projects/:project_id/comments/:id
93 94 95 |
# File 'lib/teambox-client/base.rb', line 93 def update_project_comment(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/comments/#{id}", :body => {:comment => query}) end |
#update_project_conversation(project_id, id, query = {}) ⇒ Object
Conversation update PUT /api/1/projects/:project_id/conversations/:id
128 129 130 |
# File 'lib/teambox-client/base.rb', line 128 def update_project_conversation(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/conversations/#{id}", :body => {:conversation => query}) end |
#update_project_conversation_comment(project_id, conversation_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/conversations/:conversation_id/comments/:id
97 98 99 |
# File 'lib/teambox-client/base.rb', line 97 def update_project_conversation_comment(project_id, conversation_id, id, query={}) perform_put("/api/1/projects/#{project_id}/conversations/#{conversation_id}/comments/#{id}", :body => {:comment => query}) end |
#update_project_person(project_id, id, query = {}) ⇒ Object
Person update PUT /api/1/projects/:project_id/people/:id
205 206 207 |
# File 'lib/teambox-client/base.rb', line 205 def update_project_person(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/people/#{id}", :body => {:person => query}) end |
#update_project_task(project_id, id, query = {}) ⇒ Object
Task update PUT /api/1/projects/:project_id/tasks/:id
312 313 314 |
# File 'lib/teambox-client/base.rb', line 312 def update_project_task(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/tasks/#{id}", :body => {:task => query}) end |
#update_project_task_comment(project_id, task_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/tasks/:task_id/comments/:id
101 102 103 |
# File 'lib/teambox-client/base.rb', line 101 def update_project_task_comment(project_id, task_id, id, query={}) perform_put("/api/1/projects/#{project_id}/tasks/#{task_id}/comments/#{id}", :body => {:comment => query}) end |
#update_project_task_list(project_id, id, query = {}) ⇒ Object
Task_list update PUT /api/1/projects/:project_id/task_lists/:id
254 255 256 |
# File 'lib/teambox-client/base.rb', line 254 def update_project_task_list(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/task_lists/#{id}", :body => {:task_list => query}) end |
#update_project_task_list_task(project_id, task_list_id, id, query = {}) ⇒ Object
PUT /api/1/projects/:project_id/task_lists/:task_list_id/tasks/:id
316 317 318 |
# File 'lib/teambox-client/base.rb', line 316 def update_project_task_list_task(project_id, task_list_id, id, query={}) perform_put("/api/1/projects/#{project_id}/task_lists/#{task_list_id}/tasks/#{id}", :body => {:task => query}) end |
#update_task(id, query = {}) ⇒ Object
PUT /api/1/tasks/:id
320 321 322 |
# File 'lib/teambox-client/base.rb', line 320 def update_task(id, query={}) perform_put("/api/1/tasks/#{id}", :body => {:task => query}) end |
#user(id, query = {}) ⇒ Object
User show GET /api/1/users/:id
385 386 387 |
# File 'lib/teambox-client/base.rb', line 385 def user(id, query={}) perform_get("/api/1/users/#{id}", :query => query) end |
#users(query = {}) ⇒ Object
Users index GET /api/1/users
380 381 382 |
# File 'lib/teambox-client/base.rb', line 380 def users(query={}) perform_get("/api/1/users", :query => query) end |
#watch_project_conversation(project_id, id, query = {}) ⇒ Object
Conversations watch PUT /api/1/projects/:project_id/conversations/:id/watch
119 120 121 |
# File 'lib/teambox-client/base.rb', line 119 def watch_project_conversation(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/conversations/#{id}/watch", :query => query) end |
#watch_project_task(project_id, id, query = {}) ⇒ Object
Task watch PUT /api/1/projects/:project_id/tasks/:id/watch
325 326 327 |
# File 'lib/teambox-client/base.rb', line 325 def watch_project_task(project_id, id, query={}) perform_put("/api/1/projects/#{project_id}/tasks/#{id}/watch", :query => query) end |
#watch_task(id, query = {}) ⇒ Object
PUT /api/1/tasks/:id/watch
329 330 331 |
# File 'lib/teambox-client/base.rb', line 329 def watch_task(id, query={}) perform_put("/api/1/tasks/#{id}/watch", :query => query) end |