3 operation(s). Part of the API index.
Call these as $client-><service>-><method>(...). <service> is the client field for this
group — the README lists the field name for every service.
These pages group operations the way the OpenAPI specification tags them, which
is not always one field per page.
POST /v2/manage/2fa/push-notification-settings
Create Push Notification settings
Creates new Push Notification settings for second factor authentication.
function callCreatePushSettings($client) {
$pushAuthenticator = new \LoginRadius\Sdk\Internal\OpenApi\Model\PushAuthenticator(['isEnabled' => true, 'notificationService' => '<notificationService>', 'customAppName' => '<customAppName>']); //Required
try {
$response = $client->pushNotificationConfiguration->createPushSettings($pushAuthenticator);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}PushAuthenticator as application/json.
PushAuthenticator
GET /v2/manage/2fa/push-notification-settings
Retrieve Push Notification settings
Retrieves the current Push Notification settings for second factor authentication.
function callGetPushSettings($client) {
try {
$response = $client->pushNotificationConfiguration->getPushSettings();
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}PushAuthenticator
PUT /v2/manage/2fa/push-notification-settings
Update Push Notification settings
Updates existing Push Notification settings for second factor authentication.
function callUpdatePushSettings($client) {
$pushAuthenticator = new \LoginRadius\Sdk\Internal\OpenApi\Model\PushAuthenticator(['isEnabled' => true, 'notificationService' => '<notificationService>', 'customAppName' => '<customAppName>']); //Required
try {
$response = $client->pushNotificationConfiguration->updatePushSettings($pushAuthenticator);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}PushAuthenticator as application/json.
PushAuthenticator