@pitcher/js-api

1.15.0 • Public • Published

@pitcher/js-api

This is the JavaScript API to interact with the data layer of the NG platform.

Usage

In the browser

<!doctype html>
<html>
  <head>
    <title>My app</title>
    <script src="https://unpkg.com/@pitcher/js-api"></script>
  </head>
  <body>
    <script>
      const api = pitcher.usePitcherApi()
      const ui = pitcher.useUi()
      const admin = pitcher.useAdmin()

      api.getEnv()
      ui.selectContent() // ui.select_content() works too
      admin.getEnv() // admin.get_env() works too
    </script>
  </body>
</html>

For more details, please visit the documentation.

/@pitcher/js-api/

    Package Sidebar

    Install

    npm i @pitcher/js-api

    Weekly Downloads

    121

    Version

    1.15.0

    License

    none

    Unpacked Size

    445 kB

    Total Files

    4

    Last publish

    Collaborators

    • wojtiku
    • dtornazakis
    • zinelisorestis
    • geokal94
    • pitcherci
    • chantter
    • pit-joshua
    • pegiadise