示例#1
0
 /**
  * @covers UptimeRobot::deleteAlertContact
  */
 public function testDeleteAlertContact()
 {
     $this->assertNotEquals(null, $this->object->deleteAlertContact(static::$newUserId));
 }
示例#2
0
/**
 * Edit monitor
 */
$upRobot->editMonitor($monitorId = 00, $monitorStatus = null, $friendlyName = 'Edit name of monitor');
//Edit name
$upRobot->editMonitor($monitorId = 00, $monitorStatus = null, $friendlyName = null, $URL = null, $subType = 99, $port = 25);
//Edit port of monitor
$upRobot->editMonitor($monitorId = 00, $monitorStatus = null, $friendlyName = null, $URL = null, $subType = null, $port = null, $keywordType = null, $keywordValue = null, $HTTPUsername = null, $HTTPPassword = null, $alertContacts = null);
//All parameters
/**
 * Delete monitor
 */
$upRobot->deleteMonitor(00);
//Delete monitor
/**
 * Get alert contacts
 */
$upRobot->getAlertContacts();
//Get all contacts
$upRobot->getAlertContacts(00);
//Get one contact by her id
/**
 * New alert Contact
 */
$upRobot->newAlertContact(2, 'YOUR-EMAIL');
//Create new alert contact
/**
 * Delete alert Contact
 */
$upRobot->deleteAlertContact(00);
//Delete alert contact