Views: 5153
Last Modified: 23.03.2022
The method specifies automatic status "Away"
Revision: 18
Get information on the current API revision (platform version) – im.revision.get.
Parameters
Parameter |
Example |
Req. |
Description |
Revision |
AGO |
10 |
No |
Number of minutes away |
18 |
|
Method call
JavaScript
BX24.callMethod('im.user.status.idle.start', {
'AGO': 10
}, function(result){
if(result.error())
{
console.error(result.error().ex);
}
else
{
console.log(result.data());
}
});
PHP
$result = restCommand('im.user.status.idle.start', Array(
'AGO' => 10
), $_REQUEST["auth"]);
Example of response
{
"result": true
}
Attention:
restCommand function is used here for illustration purposes only. It is taken from the
EchoBot example. You can send a REST command with your own function, or use the
BX24.callMethod or
bitrix24-php-sdk methods.