Skip to content

Commit 63fdbeb

Browse files
committed
added get single subscriber from group endpoint
1 parent 8cd9d5b commit 63fdbeb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Api/Groups.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ public function getSubscribers($groupId, $type = null, $params = [])
3030
return $response['body'];
3131
}
3232

33+
/**
34+
* Get single subscriber from group
35+
*
36+
* @param $groupId
37+
* @param $subscriber_id
38+
* @return mixed
39+
*/
40+
public function getSubscriber($groupId, $subscriber_id)
41+
{
42+
$endpoint = $this->endpoint . '/' . $groupId . '/subscribers/' . $subscriber_id;
43+
44+
$response = $this->restClient->get($endpoint);
45+
46+
return $response['body'];
47+
}
48+
49+
3350
/**
3451
* Add single subscriber to group
3552
*

0 commit comments

Comments
 (0)