C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using System.Collections.Generic;
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.Flows.ListAsync(
new ListFlowsRequestParameters {
Page = 1,
PerPage = 1,
IncludeTotals = true,
Hydrate = new List<string>(){
"form_count",
}
,
Synchronous = true
}
);
}
}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.FlowsListRequest{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
Synchronous: management.Bool(
true,
),
}
mgmt.Flows.List(
context.TODO(),
request,
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.ListFlowsRequestParameters;
import java.util.Arrays;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.flows().list(
ListFlowsRequestParameters
.builder()
.hydrate(
Arrays.asList("form_count")
)
.page(1)
.perPage(1)
.includeTotals(true)
.synchronous(true)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Flows\Requests\ListFlowsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->flows->list(
new ListFlowsRequestParameters([
'page' => 1,
'perPage' => 1,
'includeTotals' => true,
'hydrate' => [
'form_count',
],
'synchronous' => true,
]),
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.flows.list(
page=1,
per_page=1,
include_totals=True,
hydrate=[
"form_count"
],
synchronous=True,
)require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.flows.list(
page: 1,
per_page: 1,
include_totals: true,
hydrate: ["form_count"],
synchronous: true
)import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.list({
page: 1,
perPage: 1,
includeTotals: true,
synchronous: true,
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.list({
page: 1,
perPage: 1,
includeTotals: true,
synchronous: true,
});
}
main();curl --request GET \
--url https://{tenantDomain}/api/v2/flows \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"executed_at": "2023-12-25"
}
]Get flows
GET
https://{tenantDomain}/api/v2
/
flows
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using System.Collections.Generic;
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.Flows.ListAsync(
new ListFlowsRequestParameters {
Page = 1,
PerPage = 1,
IncludeTotals = true,
Hydrate = new List<string>(){
"form_count",
}
,
Synchronous = true
}
);
}
}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.FlowsListRequest{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
Synchronous: management.Bool(
true,
),
}
mgmt.Flows.List(
context.TODO(),
request,
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.ListFlowsRequestParameters;
import java.util.Arrays;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.flows().list(
ListFlowsRequestParameters
.builder()
.hydrate(
Arrays.asList("form_count")
)
.page(1)
.perPage(1)
.includeTotals(true)
.synchronous(true)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Flows\Requests\ListFlowsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->flows->list(
new ListFlowsRequestParameters([
'page' => 1,
'perPage' => 1,
'includeTotals' => true,
'hydrate' => [
'form_count',
],
'synchronous' => true,
]),
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.flows.list(
page=1,
per_page=1,
include_totals=True,
hydrate=[
"form_count"
],
synchronous=True,
)require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.flows.list(
page: 1,
per_page: 1,
include_totals: true,
hydrate: ["form_count"],
synchronous: true
)import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.list({
page: 1,
perPage: 1,
includeTotals: true,
synchronous: true,
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.flows.list({
page: 1,
perPage: 1,
includeTotals: true,
synchronous: true,
});
}
main();curl --request GET \
--url https://{tenantDomain}/api/v2/flows \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"executed_at": "2023-12-25"
}
]承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
クエリパラメータ
Page index of the results to return. First page is 0.
必須範囲:
0 <= x <= 1000Number of results per page. Defaults to 50.
必須範囲:
1 <= x <= 100Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
hydration param
利用可能なオプション:
form_count Maximum string length:
50flag to filter by sync/async flows
⌘I