PHP code example of mm28ajos / php-reolink-camera-api

1. Go to this page and download the library: Download mm28ajos/php-reolink-camera-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mm28ajos / php-reolink-camera-api example snippets








/**
 * load the class using the composer autoloader
 */
g in to the controller and request disable the motion detection e-mail alert
 * (this example assumes you have already assigned the correct values to the variables used)
 */
$reolink_connection = new \Reolink_API\Client($user, $password, $camera_ip);
$login            = $reolink_connection->login();
if ($login)
{
  $results          = $reolink_connection->toggleMotionEmail(false); // returns a PHP boolean to signale the success/failure of toggeling the motion e-mail alert
  $logout            = $reolink_connection->$logout();
}
javascript
{
    "s/php-reolink-camera-api": "^1.0"
    }
}