콘텐츠로 이동

tcb 모듈

Tencent CloudBase(TCB)에 등록한 Cloud Function을 실행하는 모듈입니다.

모듈 정보

  • 패키지: @com2usplatform/hiveaxyl
  • 가져오는 경로: @com2usplatform/hiveaxyl/tcb
  • 기본 연결 서버: https://app-api.hiveaxyl.com

제공 API

클라이언트 속성 등록 함수 설명
axyl.tcb tcb() Cloud Function 실행

등록과 획득

createAxyl()의 modules에 tcb()를 등록합니다. 로그인 세션이 필요하므로 auth, token과 함께 등록하세요.

import { createAxyl } from '@com2usplatform/hiveaxyl'
import { auth } from '@com2usplatform/hiveaxyl/auth'
import { token } from '@com2usplatform/hiveaxyl/token'
import { tcb } from '@com2usplatform/hiveaxyl/tcb'

const created = createAxyl({
  appId: '{appId}',
  clientId: '{clientId}',
  modules: { auth: auth(), token: token(), tcb: tcb() },
})

설치 절차는 모듈 설치 및 초기화를 참조하세요.