@@ -43,7 +43,7 @@ public function show()
43
43
44
44
public function members ()
45
45
{
46
- $ data = $ this ->api ('teams ' )->members ();
46
+ $ data = $ this ->api ('teams ' )->members ($ this -> id );
47
47
48
48
$ members = array ();
49
49
foreach ($ data as $ member ) {
@@ -55,28 +55,28 @@ public function members()
55
55
56
56
public function member ($ user_id )
57
57
{
58
- $ data = $ this ->api ('teams ' )->member ($ user_id );
58
+ $ data = $ this ->api ('teams ' )->member ($ this -> id , $ user_id );
59
59
60
60
return User::fromArray ($ this ->getClient (), $ data );
61
61
}
62
62
63
63
public function addMember ($ user_id , $ access_level )
64
64
{
65
- $ data = $ this ->api ('teams ' )->addMember ($ user_id , $ access_level );
65
+ $ data = $ this ->api ('teams ' )->addMember ($ this -> id , $ user_id , $ access_level );
66
66
67
67
return User::fromArray ($ this ->getClient (), $ data );
68
68
}
69
69
70
70
public function removeMember ($ user_id )
71
71
{
72
- $ this ->api ('teams ' )->removeMember ($ user_id );
72
+ $ this ->api ('teams ' )->removeMember ($ this -> id , $ user_id );
73
73
74
74
return true ;
75
75
}
76
76
77
77
public function projects ()
78
78
{
79
- $ data = $ this ->api ('teams ' )->projects ();
79
+ $ data = $ this ->api ('teams ' )->projects ($ this -> id );
80
80
81
81
$ projects = array ();
82
82
foreach ($ data as $ project ) {
@@ -88,21 +88,21 @@ public function projects()
88
88
89
89
public function project ($ project_id )
90
90
{
91
- $ data = $ this ->api ('teams ' )->project ($ project_id );
91
+ $ data = $ this ->api ('teams ' )->project ($ this -> id , $ project_id );
92
92
93
93
return Project::fromArray ($ this ->getClient (), $ data );
94
94
}
95
95
96
96
public function addProject ($ project_id , $ greatest_access_level )
97
97
{
98
- $ data = $ this ->api ('teams ' )->addProject ($ project_id , $ greatest_access_level );
98
+ $ data = $ this ->api ('teams ' )->addProject ($ this -> id , $ project_id , $ greatest_access_level );
99
99
100
100
return Project::fromArray ($ this ->getClient (), $ data );
101
101
}
102
102
103
103
public function removeProject ($ project_id )
104
104
{
105
- $ this ->api ('teams ' )->removeProject ($ project_id );
105
+ $ this ->api ('teams ' )->removeProject ($ this -> id , $ project_id );
106
106
107
107
return true ;
108
108
}
0 commit comments