Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObnizApp

Hierarchy

  • ObnizApp

Index

Methods

Static configs

  • configs(): any
  • Configration by user for This App. Only Available for BrowserApp

    Returns any

Static done

  • done(arg: { status: "success" | "error"; text: string }): void
  • done call for obniz Cloud execution. Pass arguemnt for update cloud execution status.

    // JavaScript example
    Obniz.App.done({
      status: 'success',  // 'success' | 'error'
      text: 'ex. Door Opened'
    });

    Parameters

    • arg: { status: "success" | "error"; text: string }
      • status: "success" | "error"
      • text: string

    Returns void

Static isCloudRunning

  • isCloudRunning(): boolean
  • Determine obniz.js is running on obniz Cloud or not.

    Returns boolean

Static req

  • req(): any
  • request object on obniz Cloud execution for webhook call.

    // JavaScript example
    const req = Obniz.App.req();
    console.log(req.query);
    console.log(req.body);

    Returns any

Generated using TypeDoc