public function monitor($id, $userId)
    {
        $data = [
            'user_id' => $userId
        ];

        return $this->api()->request('POST', $this->endpoint($id . '/follow'), $data);
    }
public function monitor($id, $userId)
    {
        $data = [
            'user_id' => $userId
        ];

        return $this->api()->request('POST', $this->endpoint($id . '/follow'), $data);
    }
public function monitor ( $ id , $ userId ) { $ data = [ 'user_id' => $ userId ] ; return $ this -> api ( ) -> request ( 'POST' , $ this -> endpoint ( $ id . '/follow' ) , $ data ) ; }
Monitor a resource

Monitor a resource for the given user

@api
@param $id The id of the resource
@param $userId The id of the user
@return array|null
@throws \Freshdesk\Exceptions\AccessDeniedException
@throws \Freshdesk\Exceptions\ApiException
@throws \Freshdesk\Exceptions\AuthenticationException
@throws \Freshdesk\Exceptions\ConflictingStateException
@throws \Freshdesk\Exceptions\NotFoundException
@throws \Freshdesk\Exceptions\RateLimitExceededException
@throws \Freshdesk\Exceptions\UnsupportedContentTypeException
@throws \Freshdesk\Exceptions\MethodNotAllowedException
@throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException
@throws \Freshdesk\Exceptions\ValidationException
Monitor a resource