| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebService::Toggl::API::ProjectUser; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
993
|
use WebService::Toggl::Role::Item as => 'JsonItem'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
34
|
use Moo; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
4
|
|
|
6
|
|
|
|
|
|
|
with 'WebService::Toggl::Role::API'; |
|
7
|
1
|
|
|
1
|
|
367
|
use namespace::clean; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
4
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with JsonItem( |
|
10
|
|
|
|
|
|
|
bools => [ qw(manager) ], |
|
11
|
|
|
|
|
|
|
strings => [ qw(fullname) ], |
|
12
|
|
|
|
|
|
|
integers => [ qw(pid uid wid) ], |
|
13
|
|
|
|
|
|
|
floats => [ qw(rate) ], |
|
14
|
|
|
|
|
|
|
timestamp => [ qw(at) ], |
|
15
|
|
|
|
|
|
|
); |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
|
|
sub api_path { 'project_users' } |
|
19
|
0
|
|
|
0
|
|
|
sub api_id { shift->id } |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
|
23
|
|
|
|
|
|
|
__END__ |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
{ |
|
26
|
|
|
|
|
|
|
"data": { |
|
27
|
|
|
|
|
|
|
"id":4692190, |
|
28
|
|
|
|
|
|
|
"pid":777, |
|
29
|
|
|
|
|
|
|
"uid":123, |
|
30
|
|
|
|
|
|
|
"wid":99, |
|
31
|
|
|
|
|
|
|
"manager":false, |
|
32
|
|
|
|
|
|
|
"rate":15, |
|
33
|
|
|
|
|
|
|
"fullname":"John Swift", |
|
34
|
|
|
|
|
|
|
"at":"2013-03-05T09:21:44+00:00" |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
pid: project ID (integer, required) |
|
40
|
|
|
|
|
|
|
uid: user ID, who is added to the project (integer, required) |
|
41
|
|
|
|
|
|
|
wid: workspace ID, where the project belongs to (integer, not-required, project's workspace id is used) |
|
42
|
|
|
|
|
|
|
manager: admin rights for this project (boolean, default false) |
|
43
|
|
|
|
|
|
|
rate: hourly rate for the project user (float, not-required, only for pro workspaces) in the currency of the project's client or in workspace default currency. |
|
44
|
|
|
|
|
|
|
at: timestamp that is sent in the response, indicates when the project user was last updated |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Workspace id (wid), project id (pid) and user id (uid) can't be changed on update. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
It's possible to get user's fullname. For that you have to send the fields parameter in request with desired property name. |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
fullname: full name of the user, who is added to the project |