Views: 133
Last Modified: 14.06.2022

imopenlines.revision.get – getting information about Open Channels API revisions

Revision You can get information about the current API version (platform version) as follows: im.revision.get : 2

Parameters

No.

Call example

JavaScript

BX24.callMethod('imopenlines.revision.get', {}, function(result){
    if(result.error())
    {
        console.error(result.error().ex);
    }
    else
    {
        console.log(result.data());
    }
});

PHP

$result = restCommand('imopenlines.revision.get', Array(
), $_REQUEST["auth"]);

Response example

{    
    "result": {
        "rest": 2,
        "web": 1,
        "mobile": 1,
    }
}

Key description:

  • rest – API revision for REST clients
  • web – API revision for Web/Desktop client
  • mobile – API revision for mobile client

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.





Courses developed by Bitrix24