/** * Create a new authentication token * * @return string */ private function createToken() { // Send a request to the Affilinet Logon Service to get an authentication token return $this->service->Logon(['Username' => $this->username, 'Password' => $this->password, 'WebServiceType' => 'Publisher']); }