/**
  * This cancels a message, identified by the given messageId.
  *
  * @param  string $messageId The ID of the authentication session
  * @return object|string
  */
 public function cancelMessage($messageId)
 {
     $this->log->debug('Sending cancel message request to PassBy[ME] API.');
     return parent::prepareAndSend($this->aut_url . '/messages/' . $messageId, 'DELETE');
 }
 /**
  * Returns list of second factor authentication log entries.
  *
  * @param string $search The value to be used for filtering records.
  * @param int $start The number of records to skip from the result.
  * @param int $length The maximum number of records to be returned.
  * @return object|string
  * @throws PBMErrorException
  */
 public function activityLog($search = '', $start = 0, $length = 1000)
 {
     $this->log->debug('Sending activity log request to PassBy[ME] management API.');
     return parent::prepareAndSend($this->mng_url . '/rest/activity?' . http_build_query(array('start' => $start, 'length' => $length, 'search' => array('value' => $search))), 'GET');
 }