public function getGroups($subscriberId, $params = [])
    {
        $endpoint = $this->endpoint . '/' . urlencode($subscriberId) . '/groups';

        $params = array_merge($this->prepareParams(), $params);

        $response = $this->restClient->get($endpoint, $params);

        return $response['body'];
    }
public function getGroups($subscriberId, $params = [])
    {
        $endpoint = $this->endpoint . '/' . urlencode($subscriberId) . '/groups';

        $params = array_merge($this->prepareParams(), $params);

        $response = $this->restClient->get($endpoint, $params);

        return $response['body'];
    }
public function getGroups ( $ subscriberId , $ params = [ ] ) { $ endpoint = $ this -> endpoint . '/' . urlencode ( $ subscriberId ) . '/groups' ; $ params = array_merge ( $ this -> prepareParams ( ) , $ params ) ; $ response = $ this -> restClient -> get ( $ endpoint , $ params ) ; return $ response [ 'body' ] ; }
Get groups subscriber belongs to

@param  int   $subscriberId
@param  array $params
@return [type]
Get groups subscriber belongs to