Skip to content

Commit 4077915

Browse files
Replaced teams with workspaces (#46)
1 parent b6becea commit 4077915

23 files changed

+213
-815
lines changed

src/Api/CurrentUser.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,23 @@ public function listTeamPermissions(array $params = [])
9898
*
9999
* @return array
100100
*/
101-
public function listTeams(array $params = [])
101+
public function listWorkspacePermissions(array $params = [])
102102
{
103-
$path = static::buildPath('teams');
103+
$path = $this->buildCurrentUserPath('permissions', 'workspaces');
104+
105+
return $this->get($path, $params);
106+
}
107+
108+
/**
109+
* @param array $params
110+
*
111+
* @throws \Http\Client\Exception
112+
*
113+
* @return array
114+
*/
115+
public function listWorkspaces(array $params = [])
116+
{
117+
$path = static::buildPath('workspaces');
104118

105119
return $this->get($path, $params);
106120
}

src/Api/HookEvents.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ public function listTeamEvents(array $params = [])
6262
return $this->get($path, $params);
6363
}
6464

65+
/**
66+
* @param array $params
67+
*
68+
* @throws \Http\Client\Exception
69+
*
70+
* @return array
71+
*/
72+
public function listWorkspaceEvents(array $params = [])
73+
{
74+
$path = $this->buildHookEventsPath('workspace');
75+
76+
return $this->get($path, $params);
77+
}
78+
6579
/**
6680
* Build the hook events path from the given parts.
6781
*

src/Api/Teams.php

Lines changed: 0 additions & 157 deletions
This file was deleted.

src/Api/Teams/Followers.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/Api/Teams/Following.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)