Skip to content

Commit 20bd3c7

Browse files
committed
Update Client.php
1 parent dc695c0 commit 20bd3c7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/PHPLicengine/Service/Client.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,18 @@ public function getClientByEmail ($email)
6363
return $this->get($this->url . '/client/email/' . $email);
6464
}
6565

66+
public function getClientsByUsergroup ($usergroup)
67+
{
68+
return $this->get($this->url . '/client/usergroup/' . intval($usergroup));
69+
}
70+
71+
public function getClientsByStatus ($status)
72+
{
73+
$_status['pending'] = 0;
74+
$_status['active'] = 1;
75+
$_status['cancel'] = 2;
76+
$_status['fraud'] = 3;
77+
return $this->get($this->url . '/client/status/' . $_status[$status]);
78+
}
79+
6680
}

0 commit comments

Comments
 (0)