Go
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.CreateFlowRequestContent{
Name: "name",
}
client.Flows.Create(
context.TODO(),
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.flows.create({
name: "name",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.flows.create({
name: "name",
});
}
main();curl --request POST \
--url https://{tenantDomain}/api/v2/flows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"actions": [
{
"id": "<string>",
"type": "ACTIVECAMPAIGN",
"action": "LIST_CONTACTS",
"params": {
"connection_id": "<string>",
"email": "<string>"
},
"alias": "<string>",
"allow_failure": true,
"mask_output": true
}
]
}
'import requests
url = "https://{tenantDomain}/api/v2/flows"
payload = {
"name": "<string>",
"actions": [
{
"id": "<string>",
"type": "ACTIVECAMPAIGN",
"action": "LIST_CONTACTS",
"params": {
"connection_id": "<string>",
"email": "<string>"
},
"alias": "<string>",
"allow_failure": True,
"mask_output": True
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/flows",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'actions' => [
[
'id' => '<string>',
'type' => 'ACTIVECAMPAIGN',
'action' => 'LIST_CONTACTS',
'params' => [
'connection_id' => '<string>',
'email' => '<string>'
],
'alias' => '<string>',
'allow_failure' => true,
'mask_output' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v2/flows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"actions\": [\n {\n \"id\": \"<string>\",\n \"type\": \"ACTIVECAMPAIGN\",\n \"action\": \"LIST_CONTACTS\",\n \"params\": {\n \"connection_id\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"alias\": \"<string>\",\n \"allow_failure\": true,\n \"mask_output\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/flows")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"actions\": [\n {\n \"id\": \"<string>\",\n \"type\": \"ACTIVECAMPAIGN\",\n \"action\": \"LIST_CONTACTS\",\n \"params\": {\n \"connection_id\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"alias\": \"<string>\",\n \"allow_failure\": true,\n \"mask_output\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"actions": [
{
"id": "<string>",
"type": "ACTIVECAMPAIGN",
"action": "LIST_CONTACTS",
"params": {
"connection_id": "<string>",
"email": "<string>"
},
"alias": "<string>",
"allow_failure": true,
"mask_output": true
}
],
"executed_at": "2023-12-25"
}Create a flow
POST
https://{tenantDomain}/api/v2
/
flows
Go
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.CreateFlowRequestContent{
Name: "name",
}
client.Flows.Create(
context.TODO(),
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.flows.create({
name: "name",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.flows.create({
name: "name",
});
}
main();curl --request POST \
--url https://{tenantDomain}/api/v2/flows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"actions": [
{
"id": "<string>",
"type": "ACTIVECAMPAIGN",
"action": "LIST_CONTACTS",
"params": {
"connection_id": "<string>",
"email": "<string>"
},
"alias": "<string>",
"allow_failure": true,
"mask_output": true
}
]
}
'import requests
url = "https://{tenantDomain}/api/v2/flows"
payload = {
"name": "<string>",
"actions": [
{
"id": "<string>",
"type": "ACTIVECAMPAIGN",
"action": "LIST_CONTACTS",
"params": {
"connection_id": "<string>",
"email": "<string>"
},
"alias": "<string>",
"allow_failure": True,
"mask_output": True
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/flows",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'actions' => [
[
'id' => '<string>',
'type' => 'ACTIVECAMPAIGN',
'action' => 'LIST_CONTACTS',
'params' => [
'connection_id' => '<string>',
'email' => '<string>'
],
'alias' => '<string>',
'allow_failure' => true,
'mask_output' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v2/flows")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"actions\": [\n {\n \"id\": \"<string>\",\n \"type\": \"ACTIVECAMPAIGN\",\n \"action\": \"LIST_CONTACTS\",\n \"params\": {\n \"connection_id\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"alias\": \"<string>\",\n \"allow_failure\": true,\n \"mask_output\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/flows")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"actions\": [\n {\n \"id\": \"<string>\",\n \"type\": \"ACTIVECAMPAIGN\",\n \"action\": \"LIST_CONTACTS\",\n \"params\": {\n \"connection_id\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"alias\": \"<string>\",\n \"allow_failure\": true,\n \"mask_output\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"actions": [
{
"id": "<string>",
"type": "ACTIVECAMPAIGN",
"action": "LIST_CONTACTS",
"params": {
"connection_id": "<string>",
"email": "<string>"
},
"alias": "<string>",
"allow_failure": true,
"mask_output": true
}
],
"executed_at": "2023-12-25"
}承認
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 - 150- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
- Option 37
- Option 38
- Option 39
- Option 40
- Option 41
- Option 42
- Option 43
- Option 44
- Option 45
- Option 46
- Option 47
- Option 48
- Option 49
- Option 50
- Option 51
- Option 52
- Option 53
- Option 54
- Option 55
- Option 56
- Option 57
- Option 58
- Option 59
- Option 60
- Option 61
Show child attributes
Show child attributes
レスポンス
Flow successfully created.
Maximum string length:
30Required string length:
1 - 150- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
- Option 37
- Option 38
- Option 39
- Option 40
- Option 41
- Option 42
- Option 43
- Option 44
- Option 45
- Option 46
- Option 47
- Option 48
- Option 49
- Option 50
- Option 51
- Option 52
- Option 53
- Option 54
- Option 55
- Option 56
- Option 57
- Option 58
- Option 59
- Option 60
- Option 61
Show child attributes
Show child attributes
⌘I