original_string: 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'];
      }
code: 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'];
      }
code_tokens: 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' ] ; }
docstring: Get activity of subscriber
  
  @param  int    $subscriberId
  @param  string $type
  @param  array  $params
  @return [type]
docstring_tokens: Get activity of subscriber