Skip to content

Instantly share code, notes, and snippets.

@BedrosovaYulia
Last active February 9, 2022 13:17
Show Gist options
  • Save BedrosovaYulia/9013a4dd37b7e7873426c961e47afa0d to your computer and use it in GitHub Desktop.
Save BedrosovaYulia/9013a4dd37b7e7873426c961e47afa0d to your computer and use it in GitHub Desktop.
Bitrix24 custom REST
<?
class CustomRestProvider
{
public static function OnRestServiceBuildDescription()
{
return array(
'custom' => array(
'custom.hello.world' => array('callback' => array(__CLASS__, 'HelloWorld'),'options' => array()),
)
);
}
public static function HelloWorld($query, $n, \CRestServer $server)
{
$result = array();
$result['HELLO']='WORLD';
return $result;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment