@pitcher/js-api
v1.23.0
Published
This is the JavaScript API to interact with the data layer of the NG platform.
Downloads
830
Maintainers
Keywords
Readme
@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>
<!-- or for beta: -->
<!-- <script src="https://unpkg.com/@pitcher/js-api@beta"></script> -->
</head>
<body>
<script>
const api = pitcher.usePitcherApi()
const ui = pitcher.useUi()
const admin = pitcher.useAdmin()
api.getEnv()
ui.selectContent()
admin.getEnv()
</script>
</body>
</html>
For more details, please visit the documentation.