public function getActivity($subscriberId, $type = null, $params = [])
    {
        $endpoint = $this->endpoint . '/' . urlencode($subscriberId) . '/activity';

        if ($type !== null) {
            $endpoint .= '/' . $type;
        }

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

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

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

        if ($type !== null) {
            $endpoint .= '/' . $type;
        }

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

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

        return $response['body'];
    }
public function getActivity ( $ subscriberId , $ type = null , $ params = [ ] ) { $ endpoint = $ this -> endpoint . '/' . urlencode ( $ subscriberId ) . '/activity' ; if ( $ type !== null ) { $ endpoint .= '/' . $ type ; } $ params = array_merge ( $ this -> prepareParams ( ) , $ params ) ; $ response = $ this -> restClient -> get ( $ endpoint , $ params ) ; return $ response [ 'body' ] ; }
Get activity of subscriber

@param  int    $subscriberId
@param  string $type
@param  array  $params
@return [type]
Get activity of subscriber