getRegisteredAppInfo

getRegisteredAppInfo

Function
getRegisteredAppInfo(requestOptionsIGetAppInfoOptions): Promise<IApp>

Used to retrieve registered app info. See the REST Documentation for more information.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { getRegisteredAppInfo, IApp } from '@esri/arcgis-rest-developer-credentials';
import { ArcGISIdentityManager } from "@esri/arcgis-rest-request";

const authSession: ArcGISIdentityManager = await ArcGISIdentityManager.signIn({
  username: "xyz_usrName",
  password: "xyz_pw"
});

getRegisteredAppInfo({
  itemId: "xyz_itemId",
  authentication: authSession
}).then((registeredApp: IApp) => {
  // => {client_id: "xyz_id", client_secret: "xyz_secret", ...}
}).catch(e => {
  // => an exception object
});
Parameters
ParameterTypeNotes
requestOptions
IGetAppInfoOptions

Options for getRegisteredAppInfo | getRegisteredAppInfo(), including an itemId of which app to retrieve and an ArcGISIdentityManager authentication session.

Returns 
Promise<IApp>

A Promise that will resolve to an IApp object representing successfully retrieved app.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.