【发布时间】:2022-01-11 12:39:24
【问题描述】:
如何从 Android Studo (java) 准确调用 ListUsers ? :https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ListUsers.html#API_ListUsers_RequestSyntax
我正在使用以下代码进行初始化,我也可以调用我的 REST api。
try {
// Add these lines to add the `AWSApiPlugin` and `AWSCognitoAuthPlugin`
Amplify.addPlugin(new AWSApiPlugin());
Amplify.addPlugin(new AWSCognitoAuthPlugin());
Amplify.configure(GlobalApplication.getAppContext());
Log.i("MyAmplifyApp", "Initialized Amplify.");
} catch (AmplifyException error) {
Log.e("MyAmplifyApp", "Could not initialize Amplify.", error);
}
我的目标是检索我所有的 cognito 用户池用户名
【问题讨论】:
标签: java android amazon-web-services amazon-cognito