Access and manage API keys and OAuth 2.0 application credentials with REST JS.
Install
npm install @esri/arcgis-rest-developer-credentials
Import
@esri/arcgis-rest-developer-credentials
is distributed as both ES Modules and Common JS modules.
import * as developerCredentialsTools from "@esri/arcgis-rest-developer-credentials"
const developerCredentialsTools = require("@esri/arcgis-rest-developer-credentials");
CDN
You can use @esri/arcgis-rest-developer-credentials
as an ES Module from the esm.run CDN.
<script type="module">
import * as developerCredentialsTools from "https://esm.run/@esri/arcgis-rest-developer-credentials@2.0.0";
</script>
You can also use @esri/arcgis-rest-developer-credentials
from a script tag. All exports will be added to a global arcgisRest
object.
<script
src="https://unpkg.com/@esri/arcgis-rest-developer-credentials@2.0.0/dist/bundled/developer-credentials.umd.min.js"
integrity="sha512-iSKalUybxDrkTs7ssMsOjELchNoaxVoT/kCgFbD2zvJKvQi3+9DdyB4S6CSUwEUkT4qxDLy3u8ktKdhnBIuTdA==">
</script>
Exports
- createApiKey
- createOAuthApp
- getApiKey
- getOAuthApp
- getRegisteredAppInfo
- registerApp
- slotForKey
- unregisterApp
- updateApiKey
- updateOAuthApp
- IApiKeyInfo
- IApiKeyResponse
- IApp
- ICreateApiKeyOptions
- ICreateOAuthAppOption
- IDeleteApiKeyOption
- IDeleteApiKeyResponse
- IDeleteOAuthAppOption
- IDeleteOAuthAppResponse
- IGetApiKeyOptions
- IGetAppInfoOptions
- IGetOAuthAppOptions
- IOAuthApp
- IOAuthAppInfo
- IRegisterAppOptions
- IRegisteredAppResponse
- IUnregisterAppOptions
- IUnregisterAppResponse
- IUpdateApiKeyOptions
- IUpdateOAuthOptions
- AppType
- Privileges