Harvest API を使用して、特定の時間枠の合計時間数を出力する必要があります。PHP でコーディングしましたが、エラーCall to undefined method HarvestAPI::getUsersActiveTimer() The Input is the Start Date End Date Output Total Hours が発生します
これは私のコードです
<?php
require_once( dirname(__FILE__) . '/HarvestAPI.php' );
spl_autoload_register(array('HarvestAPI', 'autoload') );
$api = new HarvestAPI();
$api->setUser( $user );
$api->setPassword( $password );
$api->setAccount( $account_name );
$api->setSSL( true );
$result = $api->getUsersActiveTimer( $userid );
if( $result->isSuccess() ) {
echo "It is Successful!";
if( ! is_null( $result->data ) ){
echo $result->get( "started-at" );
}
}
else{
echo "It is not Successful";
}
?>
これについて行く方法を親切に提案してください