getRegisteredAppInfo
FunctiongetRegisteredAppInfo(requestOptions: IGetAppInfoOptions): Promise<IApp>
Used to retrieve registered app info. See the REST Documentation for more information.
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
Parameter | Type | Notes |
---|---|---|
request | IGetAppInfoOptions | Options for |
Returns
Promise<IApp>
A Promise that will resolve to an IApp
object representing successfully retrieved app.