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@1.0.1";
</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@1.0.1/dist/bundled/developer-credentials.umd.min.js"
integrity="sha512-we5GqZN+KVcIHcfvZJC3+pauQ9puuQFRvOJIoIwg1g3KUTdIGXRWh2nslAaf1pRg7iBhV/2yQT12wMYZD8yDSA==">
</script>
Exports
- createApiKey
- createOAuthApp
- deleteApiKey
- deleteOAuthApp
- getApiKey
- getOAuthApp
- getRegisteredAppInfo
- registerApp
- unregisterApp
- updateApiKey
- updateOAuthApp
- Privileges
- IApiKeyInfo
- IApiKeyResponse
- IApp
- ICreateApiKeyOptions
- ICreateOAuthAppOption
- IDeleteApiKeyOption
- IDeleteApiKeyResponse
- IDeleteOAuthAppOption
- IDeleteOAuthAppResponse
- IGetApiKeyOptions
- IGetAppInfoOptions
- IGetOAuthAppOptions
- IOAuthApp
- IOAuthAppInfo
- IRegisterAppOptions
- IRegisteredAppResponse
- IUnregisterAppOptions
- IUnregisterAppResponse
- IUpdateApiKeyOptions
- IUpdateOAuthOptions
- AppType