C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Guardian.Factors;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Guardian.Factors.PushNotification.UpdateFcmv1ProviderAsync(
new UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent()
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v2/management"
client "github.com/auth0/go-auth0/v2/management/client"
option "github.com/auth0/go-auth0/v2/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent{}
mgmt.Guardian.Factors.PushNotification.SetFcmv1Provider(
context.TODO(),
request,
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.guardian.factors.types.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.guardian().factors().pushNotification().updateFcmv1Provider(
UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Guardian\Factors\PushNotification\Requests\UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->guardian->factors->pushNotification->updateFcmv1Provider(
new UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent([]),
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.guardian.factors.push_notification.update_fcmv_1_provider()require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.guardian.factors.push_notification.update_fcmv_1_providerimport { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.pushNotification.setFcmv1Provider({});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.pushNotification.setFcmv1Provider({});
}
main();curl --request PATCH \
--url https://{tenantDomain}/api/v2/guardian/factors/push-notification/providers/fcmv1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"server_credentials": "<string>"
}
'{}Updates FCMV1 configuration
Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.
PATCH
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
push-notification
/
providers
/
fcmv1
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Guardian.Factors;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Guardian.Factors.PushNotification.UpdateFcmv1ProviderAsync(
new UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent()
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v2/management"
client "github.com/auth0/go-auth0/v2/management/client"
option "github.com/auth0/go-auth0/v2/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent{}
mgmt.Guardian.Factors.PushNotification.SetFcmv1Provider(
context.TODO(),
request,
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.guardian.factors.types.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.guardian().factors().pushNotification().updateFcmv1Provider(
UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Guardian\Factors\PushNotification\Requests\UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->guardian->factors->pushNotification->updateFcmv1Provider(
new UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent([]),
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.guardian.factors.push_notification.update_fcmv_1_provider()require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.guardian.factors.push_notification.update_fcmv_1_providerimport { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.pushNotification.setFcmv1Provider({});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.pushNotification.setFcmv1Provider({});
}
main();curl --request PATCH \
--url https://{tenantDomain}/api/v2/guardian/factors/push-notification/providers/fcmv1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"server_credentials": "<string>"
}
'{}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ボディ
application/jsonapplication/x-www-form-urlencoded
Required string length:
1 - 10000レスポンス
FCMV1 configuration updated
The response is of type object.
⌘I