trmb-profilex-apis
v0.0.2
Published
This is the service layer components for trimble profilex apis.
Downloads
6
Readme
Service polymer components for profilex apis
This is the service layer components for trimble profilex apis.
Installation
Through npm
$npm install trmb-profilex-apis
import 'node_modules/trmb-profilex-apis/trmb-profilex.apis.js'
Through yarn
$yarn add trmb-profilex-apis
import 'bower_components/trmb-profilex-apis/trmb-profilex.apis.js'
Through cdn url
<script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/trmb-profilex-apis.js"><script>
Latest version
0.0.2
Usage
<-- include your trmb-profilex-apis component using script tag -->
<script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/trmb-profilex-apis.js"><script>
Or
<script type="module" src="npm_path/trmb-profilex-apis/trmb-profilex-apis.js"><script>
To fetch users apis
<trmb-profilex-apis bearer-token="xxx" env="" api-url="" api-prefix="/users/me" api-method="GET"></trmb-profilex-apis>
Env - Stage, Prod - Default is production
Url - If env is not specific, component will look for url attribute.
Api-prefix - Prefix to be append to the url.
Access-token - Tpaas access token
Method - GET/POST/PUT/PATCH , Default value is GET