b24jssdk-core
Installation
SKILL.md
b24jssdk core
Three entry points share the same REST surface, exposed via $b24.actions.v{2,3}.*. Pick by where the code runs:
| Entry point | Where | Auth source |
|---|---|---|
B24Hook |
Node.js / scripts / serverless | inbound webhook URL (/rest/<userId>/<secret>) |
B24Frame |
Browser, inside a Bitrix24 placement iframe | postMessage handshake with the parent window |
B24OAuth |
Server side of an OAuth-installed Bitrix24 app | accessToken + refreshToken from Bitrix24 install events |
Once initialized, write the rest of your code against the abstract type
TypeB24so the same logic runs on any of the three.
B24Hook (backend / scripts)
import { B24Hook, ConsoleV2Handler, LogLevel, Logger } from '@bitrix24/b24jssdk'