Last active
February 9, 2022 13:17
-
-
Save BedrosovaYulia/9013a4dd37b7e7873426c961e47afa0d to your computer and use it in GitHub Desktop.
Bitrix24 custom REST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
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