Views: 7074
Last Modified: 23.03.2022

im.revision.get

The method gets information about API revisions

Revision: 18

Parameters

None.

Call example

JavaScript

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

PHP

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

Example of response

{    
	"result": {
		"rest": 18,
		"web": 117,
		"mobile": 9,
	}
}

Description of keys:

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

Note: 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