All Codes are below. Please help me. I can not find any solution..
<?php
$config =
[
"secretKey" => "xxxxxxxx" ,
"accessKey" => "xxxxxxxx" ,
'baseUrl' => 'https://openapi.tuyaeu.com' ,
];
require( 'TuyaApi.php' );
$device_id = 'xxxxxx';
$tuya = new \tuyapiphp\TuyaApi( $config );
$token = $tuya->token->get_new( )->result->access_token;
$tuya->devices( $token )->get_app_list( $app_id );
// Get device status
$sonuc = $tuya->devices( $token )->get_status($device_id);
echo "<pre>";
//$object = (object) $sonuc;
var_dump($sonuc);
echo "</pre>";
echo "<br>";
?>