get Info
Get info.
Returns all the users that are paired to the device. For each user the response includes its user id, first name, last name and the device id.
Sample usage:
PingOne.getInfo(context, new PingOneGetInfoCallback() {
@Override
public void onComplete(@Nullable JsonObject publicJson, @Nullable PingOneSDKError error) {
if (publicJson != null){
//parse an array of the users paired to this device
}
}
});
Content copied to clipboard
An example of JsonObject returned in PingOneGetInfoCallback
{
"users" : [
{
"id" : "6f05692a-b34b-4036-ae4d-ab1810ec651c",
"environment" : {
"id" : "1e41d166-8012-4fa2-b755-15cd7c8a03de"
},
"device" : {
"id" : "897fbc68-57d2-4b1e-84c8-dd36289d2b8b"
},
"name" : {
"given" : "John",
"family" : "Doe"
}
}
]
}
Content copied to clipboard
Parameters
context
The context of the calling application.
callback
PingOneGetInfoCallback is triggered upon completion of the flow.