Skip to content

Commit f805799

Browse files
authored
Merge pull request richp10#12 from richp10/martinduparc-patch-1
Updated API calls
2 parents 68bb04e + 9703f09 commit f805799

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/DiscourseAPI.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,19 @@ class DiscourseAPI
3333
*/
3434
public function getGroups()
3535
{
36-
return $this->_getRequest('/admin/groups.json');
36+
return $this->_getRequest('/groups.json');
37+
}
38+
39+
/**
40+
* getGroup
41+
*
42+
* @param string $group name of group
43+
* @return mixed HTTP return code and API return object
44+
*/
45+
46+
public function getGroup($group)
47+
{
48+
return $this->_getRequest('/groups/' . $group . '.json');
3749
}
3850

3951
/**

0 commit comments

Comments
 (0)