PHP code example of phpcast / tuya-cloud-sdk
1. Go to this page and download the library: Download phpcast/tuya-cloud-sdk 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/ */
phpcast / tuya-cloud-sdk example snippets
$xslt
$config = [
'client_id' => '',
'secret' => '',
'version' => 'v1.0',
];
$cloud = \Phpcast\TuyaCloudSdk\Factory::cloud($config);
$user = $cloud->user->users('xxxx');