private function prepareTokenHelper()
    {
        $this->tokenHelper->newSession(
            $this->contactClient,
            $this->contact,
            $this->payload,
            $this->campaign,
            $this->event
        );
        // Add any additional tokens here that are only needed for API payloads.
        $this->tokenHelper->addContext(
            [
                'api_date' => $this->tokenHelper->getDateFormatHelper()->format(new \DateTime()),
            ]
        );
    }
private function prepareTokenHelper()
    {
        $this->tokenHelper->newSession(
            $this->contactClient,
            $this->contact,
            $this->payload,
            $this->campaign,
            $this->event
        );
        // Add any additional tokens here that are only needed for API payloads.
        $this->tokenHelper->addContext(
            [
                'api_date' => $this->tokenHelper->getDateFormatHelper()->format(new \DateTime()),
            ]
        );
    }
private function prepareTokenHelper ( ) { $ this -> tokenHelper -> newSession ( $ this -> contactClient , $ this -> contact , $ this -> payload , $ this -> campaign , $ this -> event ) ; // Add any additional tokens here that are only needed for API payloads. $ this -> tokenHelper -> addContext ( [ 'api_date' => $ this -> tokenHelper -> getDateFormatHelper ( ) -> format ( new \ DateTime ( ) ) , ] ) ; }
Apply our context to create a new tokenhelper session.
Apply our context to create a new tokenhelper session .