Tag Manager API
POST
tagmanager.accounts.containers.combine
{{baseUrl}}/tagmanager/v2/:path:combine
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:combine");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:combine")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:combine"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:combine"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:combine");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:combine"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:combine HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:combine")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:combine"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:combine")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:combine")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:combine');
xhr.send(data);
import axios from 'axios';
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:combine'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:combine';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:combine',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:combine")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:combine',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:combine'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:combine');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:combine'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:combine';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:combine"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:combine" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:combine",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:combine');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:combine');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:combine');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:combine' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:combine' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:combine")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:combine"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:combine"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:combine")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:combine') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:combine";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:combine
http POST {{baseUrl}}/tagmanager/v2/:path:combine
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:combine
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:combine")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.create
{{baseUrl}}/tagmanager/v2/:parent/containers
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/containers");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/containers" {:content-type :json
:form-params {:accountId ""
:containerId ""
:domainName []
:features {:supportBuiltInVariables false
:supportClients false
:supportEnvironments false
:supportFolders false
:supportGtagConfigs false
:supportTags false
:supportTemplates false
:supportTriggers false
:supportUserPermissions false
:supportVariables false
:supportVersions false
:supportWorkspaces false
:supportZones false}
:fingerprint ""
:name ""
:notes ""
:path ""
:publicId ""
:tagIds []
:tagManagerUrl ""
:taggingServerUrls []
:usageContext []}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/containers"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/containers"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/containers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/containers"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/containers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 659
{
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/containers")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/containers"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/containers")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/containers")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}")
.asString();
const data = JSON.stringify({
accountId: '',
containerId: '',
domainName: [],
features: {
supportBuiltInVariables: false,
supportClients: false,
supportEnvironments: false,
supportFolders: false,
supportGtagConfigs: false,
supportTags: false,
supportTemplates: false,
supportTriggers: false,
supportUserPermissions: false,
supportVariables: false,
supportVersions: false,
supportWorkspaces: false,
supportZones: false
},
fingerprint: '',
name: '',
notes: '',
path: '',
publicId: '',
tagIds: [],
tagManagerUrl: '',
taggingServerUrls: [],
usageContext: []
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/containers');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/containers',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
domainName: [],
features: {
supportBuiltInVariables: false,
supportClients: false,
supportEnvironments: false,
supportFolders: false,
supportGtagConfigs: false,
supportTags: false,
supportTemplates: false,
supportTriggers: false,
supportUserPermissions: false,
supportVariables: false,
supportVersions: false,
supportWorkspaces: false,
supportZones: false
},
fingerprint: '',
name: '',
notes: '',
path: '',
publicId: '',
tagIds: [],
tagManagerUrl: '',
taggingServerUrls: [],
usageContext: []
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/containers';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","domainName":[],"features":{"supportBuiltInVariables":false,"supportClients":false,"supportEnvironments":false,"supportFolders":false,"supportGtagConfigs":false,"supportTags":false,"supportTemplates":false,"supportTriggers":false,"supportUserPermissions":false,"supportVariables":false,"supportVersions":false,"supportWorkspaces":false,"supportZones":false},"fingerprint":"","name":"","notes":"","path":"","publicId":"","tagIds":[],"tagManagerUrl":"","taggingServerUrls":[],"usageContext":[]}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/containers',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "containerId": "",\n "domainName": [],\n "features": {\n "supportBuiltInVariables": false,\n "supportClients": false,\n "supportEnvironments": false,\n "supportFolders": false,\n "supportGtagConfigs": false,\n "supportTags": false,\n "supportTemplates": false,\n "supportTriggers": false,\n "supportUserPermissions": false,\n "supportVariables": false,\n "supportVersions": false,\n "supportWorkspaces": false,\n "supportZones": false\n },\n "fingerprint": "",\n "name": "",\n "notes": "",\n "path": "",\n "publicId": "",\n "tagIds": [],\n "tagManagerUrl": "",\n "taggingServerUrls": [],\n "usageContext": []\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/containers")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/containers',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
containerId: '',
domainName: [],
features: {
supportBuiltInVariables: false,
supportClients: false,
supportEnvironments: false,
supportFolders: false,
supportGtagConfigs: false,
supportTags: false,
supportTemplates: false,
supportTriggers: false,
supportUserPermissions: false,
supportVariables: false,
supportVersions: false,
supportWorkspaces: false,
supportZones: false
},
fingerprint: '',
name: '',
notes: '',
path: '',
publicId: '',
tagIds: [],
tagManagerUrl: '',
taggingServerUrls: [],
usageContext: []
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/containers',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
containerId: '',
domainName: [],
features: {
supportBuiltInVariables: false,
supportClients: false,
supportEnvironments: false,
supportFolders: false,
supportGtagConfigs: false,
supportTags: false,
supportTemplates: false,
supportTriggers: false,
supportUserPermissions: false,
supportVariables: false,
supportVersions: false,
supportWorkspaces: false,
supportZones: false
},
fingerprint: '',
name: '',
notes: '',
path: '',
publicId: '',
tagIds: [],
tagManagerUrl: '',
taggingServerUrls: [],
usageContext: []
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/containers');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
containerId: '',
domainName: [],
features: {
supportBuiltInVariables: false,
supportClients: false,
supportEnvironments: false,
supportFolders: false,
supportGtagConfigs: false,
supportTags: false,
supportTemplates: false,
supportTriggers: false,
supportUserPermissions: false,
supportVariables: false,
supportVersions: false,
supportWorkspaces: false,
supportZones: false
},
fingerprint: '',
name: '',
notes: '',
path: '',
publicId: '',
tagIds: [],
tagManagerUrl: '',
taggingServerUrls: [],
usageContext: []
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/containers',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
domainName: [],
features: {
supportBuiltInVariables: false,
supportClients: false,
supportEnvironments: false,
supportFolders: false,
supportGtagConfigs: false,
supportTags: false,
supportTemplates: false,
supportTriggers: false,
supportUserPermissions: false,
supportVariables: false,
supportVersions: false,
supportWorkspaces: false,
supportZones: false
},
fingerprint: '',
name: '',
notes: '',
path: '',
publicId: '',
tagIds: [],
tagManagerUrl: '',
taggingServerUrls: [],
usageContext: []
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/containers';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","domainName":[],"features":{"supportBuiltInVariables":false,"supportClients":false,"supportEnvironments":false,"supportFolders":false,"supportGtagConfigs":false,"supportTags":false,"supportTemplates":false,"supportTriggers":false,"supportUserPermissions":false,"supportVariables":false,"supportVersions":false,"supportWorkspaces":false,"supportZones":false},"fingerprint":"","name":"","notes":"","path":"","publicId":"","tagIds":[],"tagManagerUrl":"","taggingServerUrls":[],"usageContext":[]}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"containerId": @"",
@"domainName": @[ ],
@"features": @{ @"supportBuiltInVariables": @NO, @"supportClients": @NO, @"supportEnvironments": @NO, @"supportFolders": @NO, @"supportGtagConfigs": @NO, @"supportTags": @NO, @"supportTemplates": @NO, @"supportTriggers": @NO, @"supportUserPermissions": @NO, @"supportVariables": @NO, @"supportVersions": @NO, @"supportWorkspaces": @NO, @"supportZones": @NO },
@"fingerprint": @"",
@"name": @"",
@"notes": @"",
@"path": @"",
@"publicId": @"",
@"tagIds": @[ ],
@"tagManagerUrl": @"",
@"taggingServerUrls": @[ ],
@"usageContext": @[ ] };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/containers"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/containers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/containers",
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([
'accountId' => '',
'containerId' => '',
'domainName' => [
],
'features' => [
'supportBuiltInVariables' => null,
'supportClients' => null,
'supportEnvironments' => null,
'supportFolders' => null,
'supportGtagConfigs' => null,
'supportTags' => null,
'supportTemplates' => null,
'supportTriggers' => null,
'supportUserPermissions' => null,
'supportVariables' => null,
'supportVersions' => null,
'supportWorkspaces' => null,
'supportZones' => null
],
'fingerprint' => '',
'name' => '',
'notes' => '',
'path' => '',
'publicId' => '',
'tagIds' => [
],
'tagManagerUrl' => '',
'taggingServerUrls' => [
],
'usageContext' => [
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/containers', [
'body' => '{
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/containers');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'containerId' => '',
'domainName' => [
],
'features' => [
'supportBuiltInVariables' => null,
'supportClients' => null,
'supportEnvironments' => null,
'supportFolders' => null,
'supportGtagConfigs' => null,
'supportTags' => null,
'supportTemplates' => null,
'supportTriggers' => null,
'supportUserPermissions' => null,
'supportVariables' => null,
'supportVersions' => null,
'supportWorkspaces' => null,
'supportZones' => null
],
'fingerprint' => '',
'name' => '',
'notes' => '',
'path' => '',
'publicId' => '',
'tagIds' => [
],
'tagManagerUrl' => '',
'taggingServerUrls' => [
],
'usageContext' => [
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'containerId' => '',
'domainName' => [
],
'features' => [
'supportBuiltInVariables' => null,
'supportClients' => null,
'supportEnvironments' => null,
'supportFolders' => null,
'supportGtagConfigs' => null,
'supportTags' => null,
'supportTemplates' => null,
'supportTriggers' => null,
'supportUserPermissions' => null,
'supportVariables' => null,
'supportVersions' => null,
'supportWorkspaces' => null,
'supportZones' => null
],
'fingerprint' => '',
'name' => '',
'notes' => '',
'path' => '',
'publicId' => '',
'tagIds' => [
],
'tagManagerUrl' => '',
'taggingServerUrls' => [
],
'usageContext' => [
]
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/containers');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/containers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/containers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/containers", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/containers"
payload = {
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": False,
"supportClients": False,
"supportEnvironments": False,
"supportFolders": False,
"supportGtagConfigs": False,
"supportTags": False,
"supportTemplates": False,
"supportTriggers": False,
"supportUserPermissions": False,
"supportVariables": False,
"supportVersions": False,
"supportWorkspaces": False,
"supportZones": False
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/containers"
payload <- "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/containers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/containers') do |req|
req.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"domainName\": [],\n \"features\": {\n \"supportBuiltInVariables\": false,\n \"supportClients\": false,\n \"supportEnvironments\": false,\n \"supportFolders\": false,\n \"supportGtagConfigs\": false,\n \"supportTags\": false,\n \"supportTemplates\": false,\n \"supportTriggers\": false,\n \"supportUserPermissions\": false,\n \"supportVariables\": false,\n \"supportVersions\": false,\n \"supportWorkspaces\": false,\n \"supportZones\": false\n },\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"publicId\": \"\",\n \"tagIds\": [],\n \"tagManagerUrl\": \"\",\n \"taggingServerUrls\": [],\n \"usageContext\": []\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/containers";
let payload = json!({
"accountId": "",
"containerId": "",
"domainName": (),
"features": json!({
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
}),
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": (),
"tagManagerUrl": "",
"taggingServerUrls": (),
"usageContext": ()
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/containers \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}'
echo '{
"accountId": "",
"containerId": "",
"domainName": [],
"features": {
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
},
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/containers \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "containerId": "",\n "domainName": [],\n "features": {\n "supportBuiltInVariables": false,\n "supportClients": false,\n "supportEnvironments": false,\n "supportFolders": false,\n "supportGtagConfigs": false,\n "supportTags": false,\n "supportTemplates": false,\n "supportTriggers": false,\n "supportUserPermissions": false,\n "supportVariables": false,\n "supportVersions": false,\n "supportWorkspaces": false,\n "supportZones": false\n },\n "fingerprint": "",\n "name": "",\n "notes": "",\n "path": "",\n "publicId": "",\n "tagIds": [],\n "tagManagerUrl": "",\n "taggingServerUrls": [],\n "usageContext": []\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/containers
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"containerId": "",
"domainName": [],
"features": [
"supportBuiltInVariables": false,
"supportClients": false,
"supportEnvironments": false,
"supportFolders": false,
"supportGtagConfigs": false,
"supportTags": false,
"supportTemplates": false,
"supportTriggers": false,
"supportUserPermissions": false,
"supportVariables": false,
"supportVersions": false,
"supportWorkspaces": false,
"supportZones": false
],
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"publicId": "",
"tagIds": [],
"tagManagerUrl": "",
"taggingServerUrls": [],
"usageContext": []
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/containers")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.destinations.link
{{baseUrl}}/tagmanager/v2/:parent/destinations:link
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/destinations:link");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/destinations:link")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/destinations:link"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/destinations:link"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/destinations:link");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/destinations:link"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/destinations:link HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/destinations:link")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/destinations:link"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/destinations:link")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/destinations:link")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/destinations:link');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations:link'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/destinations:link';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations:link',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/destinations:link")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/destinations:link',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations:link'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/destinations:link');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations:link'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/destinations:link';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/destinations:link"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/destinations:link" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/destinations:link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/destinations:link');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/destinations:link');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/destinations:link');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/destinations:link' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/destinations:link' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/destinations:link")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/destinations:link"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/destinations:link"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/destinations:link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/destinations:link') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/destinations:link";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/destinations:link
http POST {{baseUrl}}/tagmanager/v2/:parent/destinations:link
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/destinations:link
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/destinations:link")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.destinations.list
{{baseUrl}}/tagmanager/v2/:parent/destinations
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/destinations");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/destinations")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/destinations"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/destinations"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/destinations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/destinations"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/destinations HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/destinations")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/destinations"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/destinations")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/destinations")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/destinations');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/destinations';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/destinations")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/destinations',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/destinations');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/destinations'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/destinations';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/destinations"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/destinations" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/destinations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/destinations');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/destinations');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/destinations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/destinations' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/destinations' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/destinations")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/destinations"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/destinations"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/destinations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/destinations') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/destinations";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/destinations
http GET {{baseUrl}}/tagmanager/v2/:parent/destinations
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/destinations
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/destinations")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.environments.create
{{baseUrl}}/tagmanager/v2/:parent/environments
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/environments");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/environments" {:content-type :json
:form-params {:accountId ""
:authorizationCode ""
:authorizationTimestamp ""
:containerId ""
:containerVersionId ""
:description ""
:enableDebug false
:environmentId ""
:fingerprint ""
:name ""
:path ""
:tagManagerUrl ""
:type ""
:url ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/environments"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/environments"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/environments");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/environments"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/environments HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 317
{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/environments")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/environments"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/environments")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/environments")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/environments');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/environments',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/environments';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","authorizationCode":"","authorizationTimestamp":"","containerId":"","containerVersionId":"","description":"","enableDebug":false,"environmentId":"","fingerprint":"","name":"","path":"","tagManagerUrl":"","type":"","url":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/environments',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "authorizationCode": "",\n "authorizationTimestamp": "",\n "containerId": "",\n "containerVersionId": "",\n "description": "",\n "enableDebug": false,\n "environmentId": "",\n "fingerprint": "",\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "type": "",\n "url": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/environments")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/environments',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/environments',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/environments');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/environments',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/environments';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","authorizationCode":"","authorizationTimestamp":"","containerId":"","containerVersionId":"","description":"","enableDebug":false,"environmentId":"","fingerprint":"","name":"","path":"","tagManagerUrl":"","type":"","url":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"authorizationCode": @"",
@"authorizationTimestamp": @"",
@"containerId": @"",
@"containerVersionId": @"",
@"description": @"",
@"enableDebug": @NO,
@"environmentId": @"",
@"fingerprint": @"",
@"name": @"",
@"path": @"",
@"tagManagerUrl": @"",
@"type": @"",
@"url": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/environments"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/environments" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/environments",
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([
'accountId' => '',
'authorizationCode' => '',
'authorizationTimestamp' => '',
'containerId' => '',
'containerVersionId' => '',
'description' => '',
'enableDebug' => null,
'environmentId' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'url' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/environments', [
'body' => '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/environments');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'authorizationCode' => '',
'authorizationTimestamp' => '',
'containerId' => '',
'containerVersionId' => '',
'description' => '',
'enableDebug' => null,
'environmentId' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'url' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'authorizationCode' => '',
'authorizationTimestamp' => '',
'containerId' => '',
'containerVersionId' => '',
'description' => '',
'enableDebug' => null,
'environmentId' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'url' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/environments');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/environments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/environments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/environments", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/environments"
payload = {
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": False,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/environments"
payload <- "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/environments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/environments') do |req|
req.body = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/environments";
let payload = json!({
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/environments \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/environments \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "authorizationCode": "",\n "authorizationTimestamp": "",\n "containerId": "",\n "containerVersionId": "",\n "description": "",\n "enableDebug": false,\n "environmentId": "",\n "fingerprint": "",\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "type": "",\n "url": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/environments
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/environments")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.environments.list
{{baseUrl}}/tagmanager/v2/:parent/environments
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/environments");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/environments")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/environments"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/environments"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/environments");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/environments"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/environments HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/environments")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/environments"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/environments")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/environments")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/environments');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/environments'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/environments';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/environments',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/environments")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/environments',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/environments'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/environments');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/environments'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/environments';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/environments"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/environments" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/environments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/environments');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/environments');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/environments');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/environments' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/environments' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/environments")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/environments"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/environments"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/environments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/environments') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/environments";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/environments
http GET {{baseUrl}}/tagmanager/v2/:parent/environments
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/environments
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/environments")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.environments.reauthorize
{{baseUrl}}/tagmanager/v2/:path:reauthorize
QUERY PARAMS
path
BODY json
{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:reauthorize");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:reauthorize" {:content-type :json
:form-params {:accountId ""
:authorizationCode ""
:authorizationTimestamp ""
:containerId ""
:containerVersionId ""
:description ""
:enableDebug false
:environmentId ""
:fingerprint ""
:name ""
:path ""
:tagManagerUrl ""
:type ""
:url ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:reauthorize"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:reauthorize"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:reauthorize");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:reauthorize"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:reauthorize HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 317
{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:reauthorize")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:reauthorize"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:reauthorize")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:reauthorize")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:reauthorize');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:reauthorize',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:reauthorize';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","authorizationCode":"","authorizationTimestamp":"","containerId":"","containerVersionId":"","description":"","enableDebug":false,"environmentId":"","fingerprint":"","name":"","path":"","tagManagerUrl":"","type":"","url":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:reauthorize',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "authorizationCode": "",\n "authorizationTimestamp": "",\n "containerId": "",\n "containerVersionId": "",\n "description": "",\n "enableDebug": false,\n "environmentId": "",\n "fingerprint": "",\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "type": "",\n "url": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:reauthorize")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:reauthorize',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:reauthorize',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:reauthorize');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:reauthorize',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
authorizationCode: '',
authorizationTimestamp: '',
containerId: '',
containerVersionId: '',
description: '',
enableDebug: false,
environmentId: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
type: '',
url: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:reauthorize';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","authorizationCode":"","authorizationTimestamp":"","containerId":"","containerVersionId":"","description":"","enableDebug":false,"environmentId":"","fingerprint":"","name":"","path":"","tagManagerUrl":"","type":"","url":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"authorizationCode": @"",
@"authorizationTimestamp": @"",
@"containerId": @"",
@"containerVersionId": @"",
@"description": @"",
@"enableDebug": @NO,
@"environmentId": @"",
@"fingerprint": @"",
@"name": @"",
@"path": @"",
@"tagManagerUrl": @"",
@"type": @"",
@"url": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:reauthorize"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:reauthorize" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:reauthorize",
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([
'accountId' => '',
'authorizationCode' => '',
'authorizationTimestamp' => '',
'containerId' => '',
'containerVersionId' => '',
'description' => '',
'enableDebug' => null,
'environmentId' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'url' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:reauthorize', [
'body' => '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:reauthorize');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'authorizationCode' => '',
'authorizationTimestamp' => '',
'containerId' => '',
'containerVersionId' => '',
'description' => '',
'enableDebug' => null,
'environmentId' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'url' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'authorizationCode' => '',
'authorizationTimestamp' => '',
'containerId' => '',
'containerVersionId' => '',
'description' => '',
'enableDebug' => null,
'environmentId' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'url' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:reauthorize');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:reauthorize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:reauthorize' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:path:reauthorize", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:reauthorize"
payload = {
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": False,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:reauthorize"
payload <- "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:reauthorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:path:reauthorize') do |req|
req.body = "{\n \"accountId\": \"\",\n \"authorizationCode\": \"\",\n \"authorizationTimestamp\": \"\",\n \"containerId\": \"\",\n \"containerVersionId\": \"\",\n \"description\": \"\",\n \"enableDebug\": false,\n \"environmentId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"url\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:reauthorize";
let payload = json!({
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:reauthorize \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:path:reauthorize \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "authorizationCode": "",\n "authorizationTimestamp": "",\n "containerId": "",\n "containerVersionId": "",\n "description": "",\n "enableDebug": false,\n "environmentId": "",\n "fingerprint": "",\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "type": "",\n "url": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:reauthorize
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"authorizationCode": "",
"authorizationTimestamp": "",
"containerId": "",
"containerVersionId": "",
"description": "",
"enableDebug": false,
"environmentId": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"type": "",
"url": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:reauthorize")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.list
{{baseUrl}}/tagmanager/v2/:parent/containers
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/containers");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/containers")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/containers"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/containers"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/containers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/containers"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/containers HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/containers")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/containers"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/containers")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/containers")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/containers');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/containers'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/containers';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/containers',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/containers")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/containers',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/containers'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/containers');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/containers'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/containers';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/containers"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/containers" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/containers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/containers');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/containers');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/containers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/containers' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/containers' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/containers")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/containers"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/containers"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/containers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/containers') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/containers";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/containers
http GET {{baseUrl}}/tagmanager/v2/:parent/containers
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/containers
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/containers")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.lookup
{{baseUrl}}/tagmanager/v2/accounts/containers:lookup
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/accounts/containers:lookup"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/accounts/containers:lookup");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/accounts/containers:lookup HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/accounts/containers:lookup"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/accounts/containers:lookup")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/accounts/containers:lookup")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/accounts/containers:lookup")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/accounts/containers:lookup',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/accounts/containers:lookup"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/accounts/containers:lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/accounts/containers:lookup');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/accounts/containers:lookup');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/accounts/containers:lookup' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/accounts/containers:lookup")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/accounts/containers:lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/accounts/containers:lookup') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/accounts/containers:lookup
http GET {{baseUrl}}/tagmanager/v2/accounts/containers:lookup
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/accounts/containers:lookup
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/accounts/containers:lookup")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.move_tag_id
{{baseUrl}}/tagmanager/v2/:path:move_tag_id
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:move_tag_id");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:move_tag_id")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:move_tag_id"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:move_tag_id"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:move_tag_id");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:move_tag_id"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:move_tag_id HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:move_tag_id")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:move_tag_id"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:move_tag_id")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:move_tag_id")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:move_tag_id');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:move_tag_id'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:move_tag_id';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:move_tag_id',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:move_tag_id")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:move_tag_id',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:move_tag_id'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:move_tag_id');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:move_tag_id'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:move_tag_id';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:move_tag_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:move_tag_id" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:move_tag_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:move_tag_id');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:move_tag_id');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:move_tag_id');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:move_tag_id' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:move_tag_id' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:move_tag_id")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:move_tag_id"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:move_tag_id"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:move_tag_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:move_tag_id') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:move_tag_id";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:move_tag_id
http POST {{baseUrl}}/tagmanager/v2/:path:move_tag_id
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:move_tag_id
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:move_tag_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.snippet
{{baseUrl}}/tagmanager/v2/:path:snippet
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:snippet");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:path:snippet")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:snippet"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:snippet"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:snippet");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:snippet"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:path:snippet HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:path:snippet")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:snippet"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:snippet")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:path:snippet")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:path:snippet');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path:snippet'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:snippet';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:snippet',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:snippet")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:snippet',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path:snippet'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:path:snippet');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path:snippet'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:snippet';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:snippet"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:snippet" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:snippet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:path:snippet');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:snippet');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:snippet');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:snippet' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:snippet' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:path:snippet")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:snippet"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:snippet"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:snippet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:path:snippet') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:snippet";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:path:snippet
http GET {{baseUrl}}/tagmanager/v2/:path:snippet
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:snippet
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:snippet")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.version_headers.latest
{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/version_headers:latest HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/version_headers:latest',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/version_headers:latest")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/version_headers:latest') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/version_headers:latest
http GET {{baseUrl}}/tagmanager/v2/:parent/version_headers:latest
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/version_headers:latest
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/version_headers:latest")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.version_headers.list
{{baseUrl}}/tagmanager/v2/:parent/version_headers
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/version_headers");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/version_headers")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/version_headers"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/version_headers"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/version_headers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/version_headers"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/version_headers HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/version_headers")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/version_headers"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/version_headers")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/version_headers")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/version_headers');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/version_headers';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/version_headers")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/version_headers',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/version_headers');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/version_headers'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/version_headers';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/version_headers"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/version_headers" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/version_headers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/version_headers');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/version_headers');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/version_headers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/version_headers' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/version_headers' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/version_headers")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/version_headers"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/version_headers"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/version_headers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/version_headers') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/version_headers";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/version_headers
http GET {{baseUrl}}/tagmanager/v2/:parent/version_headers
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/version_headers
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/version_headers")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.versions.live
{{baseUrl}}/tagmanager/v2/:parent/versions:live
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/versions:live");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/versions:live")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/versions:live"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/versions:live"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/versions:live");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/versions:live"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/versions:live HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/versions:live")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/versions:live"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/versions:live")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/versions:live")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/versions:live');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/versions:live'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/versions:live';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/versions:live',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/versions:live")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/versions:live',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/versions:live'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/versions:live');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/versions:live'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/versions:live';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/versions:live"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/versions:live" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/versions:live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/versions:live');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/versions:live');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/versions:live');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/versions:live' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/versions:live' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/versions:live")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/versions:live"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/versions:live"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/versions:live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/versions:live') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/versions:live";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/versions:live
http GET {{baseUrl}}/tagmanager/v2/:parent/versions:live
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/versions:live
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/versions:live")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.versions.publish
{{baseUrl}}/tagmanager/v2/:path:publish
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:publish");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:publish")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:publish"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:publish"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:publish");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:publish"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:publish HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:publish")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:publish"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:publish")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:publish")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:publish');
xhr.send(data);
import axios from 'axios';
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:publish'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:publish';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:publish',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:publish")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:publish',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:publish'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:publish');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:publish'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:publish';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:publish"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:publish" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:publish",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:publish');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:publish');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:publish');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:publish' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:publish' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:publish")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:publish"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:publish"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:publish') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:publish";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:publish
http POST {{baseUrl}}/tagmanager/v2/:path:publish
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:publish
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:publish")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.versions.set_latest
{{baseUrl}}/tagmanager/v2/:path:set_latest
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:set_latest");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:set_latest")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:set_latest"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:set_latest"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:set_latest");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:set_latest"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:set_latest HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:set_latest")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:set_latest"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:set_latest")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:set_latest")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:set_latest');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:set_latest'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:set_latest';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:set_latest',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:set_latest")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:set_latest',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:set_latest'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:set_latest');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:set_latest'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:set_latest';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:set_latest"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:set_latest" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:set_latest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:set_latest');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:set_latest');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:set_latest');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:set_latest' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:set_latest' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:set_latest")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:set_latest"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:set_latest"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:set_latest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:set_latest') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:set_latest";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:set_latest
http POST {{baseUrl}}/tagmanager/v2/:path:set_latest
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:set_latest
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:set_latest")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.versions.undelete
{{baseUrl}}/tagmanager/v2/:path:undelete
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:undelete");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:undelete")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:undelete"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:undelete"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:undelete");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:undelete"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:undelete HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:undelete")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:undelete"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:undelete")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:undelete")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:undelete');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:undelete'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:undelete';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:undelete',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:undelete")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:undelete',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:undelete'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:undelete');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:undelete'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:undelete';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:undelete"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:undelete" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:undelete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:undelete');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:undelete');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:undelete');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:undelete' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:undelete' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:undelete")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:undelete"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:undelete"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:undelete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:undelete') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:undelete";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:undelete
http POST {{baseUrl}}/tagmanager/v2/:path:undelete
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:undelete
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:undelete")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.built_in_variables.create
{{baseUrl}}/tagmanager/v2/:parent/built_in_variables
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/built_in_variables HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/built_in_variables',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/built_in_variables",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/built_in_variables")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/built_in_variables') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/built_in_variables
http POST {{baseUrl}}/tagmanager/v2/:parent/built_in_variables
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/built_in_variables
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.built_in_variables.list
{{baseUrl}}/tagmanager/v2/:parent/built_in_variables
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/built_in_variables HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/built_in_variables',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/built_in_variables",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/built_in_variables');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/built_in_variables' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/built_in_variables")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/built_in_variables') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/built_in_variables
http GET {{baseUrl}}/tagmanager/v2/:parent/built_in_variables
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/built_in_variables
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/built_in_variables")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.built_in_variables.revert
{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path/built_in_variables:revert HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path/built_in_variables:revert',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path/built_in_variables:revert")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path/built_in_variables:revert') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert
http POST {{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path/built_in_variables:revert")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.clients.create
{{baseUrl}}/tagmanager/v2/:parent/clients
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/clients");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/clients" {:content-type :json
:form-params {:accountId ""
:clientId ""
:containerId ""
:fingerprint ""
:name ""
:notes ""
:parameter [{:key ""
:list []
:map []
:type ""
:value ""}]
:parentFolderId ""
:path ""
:priority 0
:tagManagerUrl ""
:type ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/clients"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/clients"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/clients");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/clients"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/clients HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 345
{
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/clients")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/clients"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/clients")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/clients")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/clients');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/clients',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/clients';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","clientId":"","containerId":"","fingerprint":"","name":"","notes":"","parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"parentFolderId":"","path":"","priority":0,"tagManagerUrl":"","type":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/clients',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "clientId": "",\n "containerId": "",\n "fingerprint": "",\n "name": "",\n "notes": "",\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "parentFolderId": "",\n "path": "",\n "priority": 0,\n "tagManagerUrl": "",\n "type": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/clients")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/clients',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/clients',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/clients');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/clients',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/clients';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","clientId":"","containerId":"","fingerprint":"","name":"","notes":"","parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"parentFolderId":"","path":"","priority":0,"tagManagerUrl":"","type":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"clientId": @"",
@"containerId": @"",
@"fingerprint": @"",
@"name": @"",
@"notes": @"",
@"parameter": @[ @{ @"key": @"", @"list": @[ ], @"map": @[ ], @"type": @"", @"value": @"" } ],
@"parentFolderId": @"",
@"path": @"",
@"priority": @0,
@"tagManagerUrl": @"",
@"type": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/clients"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/clients" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/clients",
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([
'accountId' => '',
'clientId' => '',
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'parentFolderId' => '',
'path' => '',
'priority' => 0,
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/clients', [
'body' => '{
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/clients');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'clientId' => '',
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'parentFolderId' => '',
'path' => '',
'priority' => 0,
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'clientId' => '',
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'parentFolderId' => '',
'path' => '',
'priority' => 0,
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/clients');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/clients' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/clients' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/clients", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/clients"
payload = {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/clients"
payload <- "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/clients') do |req|
req.body = "{\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/clients";
let payload = json!({
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": (
json!({
"key": "",
"list": (),
"map": (),
"type": "",
"value": ""
})
),
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/clients \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/clients \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "clientId": "",\n "containerId": "",\n "fingerprint": "",\n "name": "",\n "notes": "",\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "parentFolderId": "",\n "path": "",\n "priority": 0,\n "tagManagerUrl": "",\n "type": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/clients
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
[
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
]
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/clients")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.clients.list
{{baseUrl}}/tagmanager/v2/:parent/clients
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/clients");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/clients")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/clients"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/clients"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/clients");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/clients"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/clients HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/clients")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/clients"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/clients")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/clients")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/clients');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/clients'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/clients';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/clients',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/clients")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/clients',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/clients'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/clients');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/clients'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/clients';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/clients"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/clients" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/clients');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/clients');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/clients');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/clients' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/clients' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/clients")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/clients"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/clients"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/clients') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/clients";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/clients
http GET {{baseUrl}}/tagmanager/v2/:parent/clients
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/clients
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/clients")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.create
{{baseUrl}}/tagmanager/v2/:parent/workspaces
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/workspaces");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/workspaces" {:content-type :json
:form-params {:accountId ""
:containerId ""
:description ""
:fingerprint ""
:name ""
:path ""
:tagManagerUrl ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/workspaces"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/workspaces");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/workspaces HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 156
{
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/workspaces"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
containerId: '',
description: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/workspaces');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
description: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/workspaces';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","description":"","fingerprint":"","name":"","path":"","tagManagerUrl":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "containerId": "",\n "description": "",\n "fingerprint": "",\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/workspaces',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
containerId: '',
description: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
containerId: '',
description: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/workspaces');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
containerId: '',
description: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
description: '',
fingerprint: '',
name: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/workspaces';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","description":"","fingerprint":"","name":"","path":"","tagManagerUrl":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"containerId": @"",
@"description": @"",
@"fingerprint": @"",
@"name": @"",
@"path": @"",
@"tagManagerUrl": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/workspaces"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/workspaces" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/workspaces",
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([
'accountId' => '',
'containerId' => '',
'description' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/workspaces', [
'body' => '{
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/workspaces');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'containerId' => '',
'description' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'containerId' => '',
'description' => '',
'fingerprint' => '',
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/workspaces');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/workspaces' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/workspaces' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/workspaces", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
payload = {
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
payload <- "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/workspaces') do |req|
req.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"description\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/workspaces";
let payload = json!({
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/workspaces \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/workspaces \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "containerId": "",\n "description": "",\n "fingerprint": "",\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/workspaces
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"containerId": "",
"description": "",
"fingerprint": "",
"name": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/workspaces")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.create_version
{{baseUrl}}/tagmanager/v2/:path:create_version
QUERY PARAMS
path
BODY json
{
"name": "",
"notes": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:create_version");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"name\": \"\",\n \"notes\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:create_version" {:content-type :json
:form-params {:name ""
:notes ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:create_version"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"name\": \"\",\n \"notes\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:create_version"),
Content = new StringContent("{\n \"name\": \"\",\n \"notes\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:create_version");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"name\": \"\",\n \"notes\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:create_version"
payload := strings.NewReader("{\n \"name\": \"\",\n \"notes\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:create_version HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 31
{
"name": "",
"notes": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:create_version")
.setHeader("content-type", "application/json")
.setBody("{\n \"name\": \"\",\n \"notes\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:create_version"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"name\": \"\",\n \"notes\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"name\": \"\",\n \"notes\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:create_version")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:create_version")
.header("content-type", "application/json")
.body("{\n \"name\": \"\",\n \"notes\": \"\"\n}")
.asString();
const data = JSON.stringify({
name: '',
notes: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:create_version');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:create_version',
headers: {'content-type': 'application/json'},
data: {name: '', notes: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:create_version';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"name":"","notes":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:create_version',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "name": "",\n "notes": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"name\": \"\",\n \"notes\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:create_version")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:create_version',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({name: '', notes: ''}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:create_version',
headers: {'content-type': 'application/json'},
body: {name: '', notes: ''},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:create_version');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
name: '',
notes: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:create_version',
headers: {'content-type': 'application/json'},
data: {name: '', notes: ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:create_version';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"name":"","notes":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
@"notes": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:create_version"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:create_version" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"name\": \"\",\n \"notes\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:create_version",
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' => '',
'notes' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:create_version', [
'body' => '{
"name": "",
"notes": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:create_version');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'name' => '',
'notes' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'name' => '',
'notes' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:create_version');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:create_version' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"name": "",
"notes": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:create_version' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"name": "",
"notes": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"name\": \"\",\n \"notes\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:path:create_version", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:create_version"
payload = {
"name": "",
"notes": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:create_version"
payload <- "{\n \"name\": \"\",\n \"notes\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:create_version")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"name\": \"\",\n \"notes\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:path:create_version') do |req|
req.body = "{\n \"name\": \"\",\n \"notes\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:create_version";
let payload = json!({
"name": "",
"notes": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:create_version \
--header 'content-type: application/json' \
--data '{
"name": "",
"notes": ""
}'
echo '{
"name": "",
"notes": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:path:create_version \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "name": "",\n "notes": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:create_version
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"name": "",
"notes": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:create_version")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.folders.create
{{baseUrl}}/tagmanager/v2/:parent/folders
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/folders");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/folders" {:content-type :json
:form-params {:accountId ""
:containerId ""
:fingerprint ""
:folderId ""
:name ""
:notes ""
:path ""
:tagManagerUrl ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/folders"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/folders"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/folders");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/folders"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/folders HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 168
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/folders")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/folders"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/folders")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/folders")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/folders');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/folders',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/folders';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","folderId":"","name":"","notes":"","path":"","tagManagerUrl":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/folders',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "folderId": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/folders")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/folders',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/folders',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/folders');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/folders',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/folders';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","folderId":"","name":"","notes":"","path":"","tagManagerUrl":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"containerId": @"",
@"fingerprint": @"",
@"folderId": @"",
@"name": @"",
@"notes": @"",
@"path": @"",
@"tagManagerUrl": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/folders"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/folders" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/folders",
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([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/folders', [
'body' => '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/folders');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/folders');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/folders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/folders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/folders", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/folders"
payload = {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/folders"
payload <- "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/folders') do |req|
req.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/folders";
let payload = json!({
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/folders \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/folders \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "folderId": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/folders
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/folders")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.folders.entities
{{baseUrl}}/tagmanager/v2/:path:entities
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:entities");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:entities")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:entities"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:entities"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:entities");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:entities"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:entities HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:entities")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:entities"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:entities")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:entities")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:entities');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:entities'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:entities';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:entities',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:entities")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:entities',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:entities'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:entities');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:entities'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:entities';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:entities"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:entities" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:entities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:entities');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:entities');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:entities');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:entities' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:entities' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:entities")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:entities"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:entities"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:entities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:entities') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:entities";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:entities
http POST {{baseUrl}}/tagmanager/v2/:path:entities
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:entities
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:entities")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.folders.list
{{baseUrl}}/tagmanager/v2/:parent/folders
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/folders");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/folders")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/folders"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/folders"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/folders");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/folders"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/folders HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/folders")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/folders"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/folders")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/folders")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/folders');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/folders'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/folders';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/folders',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/folders")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/folders',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/folders'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/folders');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/folders'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/folders';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/folders"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/folders" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/folders');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/folders');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/folders');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/folders' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/folders' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/folders")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/folders"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/folders"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/folders') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/folders";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/folders
http GET {{baseUrl}}/tagmanager/v2/:parent/folders
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/folders
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/folders")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.folders.move_entities_to_folder
{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder
QUERY PARAMS
path
BODY json
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder" {:content-type :json
:form-params {:accountId ""
:containerId ""
:fingerprint ""
:folderId ""
:name ""
:notes ""
:path ""
:tagManagerUrl ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:move_entities_to_folder HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 168
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","folderId":"","name":"","notes":"","path":"","tagManagerUrl":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "folderId": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:move_entities_to_folder',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","folderId":"","name":"","notes":"","path":"","tagManagerUrl":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"containerId": @"",
@"fingerprint": @"",
@"folderId": @"",
@"name": @"",
@"notes": @"",
@"path": @"",
@"tagManagerUrl": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder",
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([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder', [
'body' => '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:path:move_entities_to_folder", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder"
payload = {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder"
payload <- "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:path:move_entities_to_folder') do |req|
req.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder";
let payload = json!({
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "folderId": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:move_entities_to_folder")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.getStatus
{{baseUrl}}/tagmanager/v2/:path/status
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path/status");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:path/status")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path/status"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path/status"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path/status");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:path/status HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:path/status")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path/status"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path/status")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:path/status")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:path/status');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path/status'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path/status';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path/status',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path/status")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path/status',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path/status'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:path/status');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path/status'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path/status';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path/status"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path/status" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:path/status');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path/status');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path/status');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path/status' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path/status' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:path/status")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path/status"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path/status"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:path/status') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path/status";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:path/status
http GET {{baseUrl}}/tagmanager/v2/:path/status
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path/status
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path/status")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.gtag_config.create
{{baseUrl}}/tagmanager/v2/:parent/gtag_config
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/gtag_config");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/gtag_config" {:content-type :json
:form-params {:accountId ""
:containerId ""
:fingerprint ""
:gtagConfigId ""
:parameter [{:key ""
:list []
:map []
:type ""
:value ""}]
:path ""
:tagManagerUrl ""
:type ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/gtag_config"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/gtag_config");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/gtag_config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 279
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/gtag_config"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
gtagConfigId: '',
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
path: '',
tagManagerUrl: '',
type: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
gtagConfigId: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
path: '',
tagManagerUrl: '',
type: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/gtag_config';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","gtagConfigId":"","parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"path":"","tagManagerUrl":"","type":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "gtagConfigId": "",\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "path": "",\n "tagManagerUrl": "",\n "type": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/gtag_config',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
gtagConfigId: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
path: '',
tagManagerUrl: '',
type: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
containerId: '',
fingerprint: '',
gtagConfigId: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
path: '',
tagManagerUrl: '',
type: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
containerId: '',
fingerprint: '',
gtagConfigId: '',
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
path: '',
tagManagerUrl: '',
type: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
gtagConfigId: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
path: '',
tagManagerUrl: '',
type: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/gtag_config';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","gtagConfigId":"","parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"path":"","tagManagerUrl":"","type":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"containerId": @"",
@"fingerprint": @"",
@"gtagConfigId": @"",
@"parameter": @[ @{ @"key": @"", @"list": @[ ], @"map": @[ ], @"type": @"", @"value": @"" } ],
@"path": @"",
@"tagManagerUrl": @"",
@"type": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/gtag_config"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/gtag_config" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/gtag_config",
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([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'gtagConfigId' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/gtag_config', [
'body' => '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'gtagConfigId' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'gtagConfigId' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'path' => '',
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/gtag_config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/gtag_config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/gtag_config", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
payload = {
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
payload <- "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/gtag_config') do |req|
req.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"gtagConfigId\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/gtag_config";
let payload = json!({
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": (
json!({
"key": "",
"list": (),
"map": (),
"type": "",
"value": ""
})
),
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/gtag_config \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/gtag_config \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "gtagConfigId": "",\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "path": "",\n "tagManagerUrl": "",\n "type": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/gtag_config
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"containerId": "",
"fingerprint": "",
"gtagConfigId": "",
"parameter": [
[
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
]
],
"path": "",
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/gtag_config")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.gtag_config.list
{{baseUrl}}/tagmanager/v2/:parent/gtag_config
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/gtag_config");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/gtag_config"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/gtag_config");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/gtag_config HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/gtag_config"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/gtag_config';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/gtag_config',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/gtag_config'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/gtag_config';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/gtag_config"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/gtag_config" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/gtag_config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/gtag_config');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/gtag_config' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/gtag_config' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/gtag_config")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/gtag_config"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/gtag_config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/gtag_config') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/gtag_config";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/gtag_config
http GET {{baseUrl}}/tagmanager/v2/:parent/gtag_config
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/gtag_config
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/gtag_config")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.list
{{baseUrl}}/tagmanager/v2/:parent/workspaces
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/workspaces");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/workspaces")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/workspaces"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/workspaces");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/workspaces HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/workspaces"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/workspaces');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/workspaces';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/workspaces',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/workspaces');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/workspaces'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/workspaces';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/workspaces"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/workspaces" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/workspaces');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/workspaces');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/workspaces');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/workspaces' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/workspaces' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/workspaces")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/workspaces"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/workspaces') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/workspaces";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/workspaces
http GET {{baseUrl}}/tagmanager/v2/:parent/workspaces
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/workspaces
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/workspaces")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.quick_preview
{{baseUrl}}/tagmanager/v2/:path:quick_preview
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:quick_preview");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:quick_preview")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:quick_preview"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:quick_preview"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:quick_preview");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:quick_preview"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:quick_preview HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:quick_preview")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:quick_preview"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:quick_preview")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:quick_preview")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:quick_preview');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:quick_preview'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:quick_preview';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:quick_preview',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:quick_preview")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:quick_preview',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:quick_preview'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:quick_preview');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:quick_preview'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:quick_preview';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:quick_preview"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:quick_preview" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:quick_preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:quick_preview');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:quick_preview');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:quick_preview');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:quick_preview' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:quick_preview' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:quick_preview")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:quick_preview"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:quick_preview"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:quick_preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:quick_preview') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:quick_preview";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:quick_preview
http POST {{baseUrl}}/tagmanager/v2/:path:quick_preview
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:quick_preview
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:quick_preview")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.resolve_conflict
{{baseUrl}}/tagmanager/v2/:path:resolve_conflict
QUERY PARAMS
path
BODY json
{
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict" {:content-type :json
:form-params {:changeStatus ""
:client {:accountId ""
:clientId ""
:containerId ""
:fingerprint ""
:name ""
:notes ""
:parameter [{:key ""
:list []
:map []
:type ""
:value ""}]
:parentFolderId ""
:path ""
:priority 0
:tagManagerUrl ""
:type ""
:workspaceId ""}
:folder {:accountId ""
:containerId ""
:fingerprint ""
:folderId ""
:name ""
:notes ""
:path ""
:tagManagerUrl ""
:workspaceId ""}
:tag {:accountId ""
:blockingRuleId []
:blockingTriggerId []
:consentSettings {:consentStatus ""
:consentType {}}
:containerId ""
:fingerprint ""
:firingRuleId []
:firingTriggerId []
:liveOnly false
:monitoringMetadata {}
:monitoringMetadataTagNameKey ""
:name ""
:notes ""
:parameter [{}]
:parentFolderId ""
:path ""
:paused false
:priority {}
:scheduleEndMs ""
:scheduleStartMs ""
:setupTag [{:stopOnSetupFailure false
:tagName ""}]
:tagFiringOption ""
:tagId ""
:tagManagerUrl ""
:teardownTag [{:stopTeardownOnFailure false
:tagName ""}]
:type ""
:workspaceId ""}
:trigger {:accountId ""
:autoEventFilter [{:parameter [{}]
:type ""}]
:checkValidation {}
:containerId ""
:continuousTimeMinMilliseconds {}
:customEventFilter [{}]
:eventName {}
:filter [{}]
:fingerprint ""
:horizontalScrollPercentageList {}
:interval {}
:intervalSeconds {}
:limit {}
:maxTimerLengthSeconds {}
:name ""
:notes ""
:parameter [{}]
:parentFolderId ""
:path ""
:selector {}
:tagManagerUrl ""
:totalTimeMinMilliseconds {}
:triggerId ""
:type ""
:uniqueTriggerId {}
:verticalScrollPercentageList {}
:visibilitySelector {}
:visiblePercentageMax {}
:visiblePercentageMin {}
:waitForTags {}
:waitForTagsTimeout {}
:workspaceId ""}
:variable {:accountId ""
:containerId ""
:disablingTriggerId []
:enablingTriggerId []
:fingerprint ""
:formatValue {:caseConversionType ""
:convertFalseToValue {}
:convertNullToValue {}
:convertTrueToValue {}
:convertUndefinedToValue {}}
:name ""
:notes ""
:parameter [{}]
:parentFolderId ""
:path ""
:scheduleEndMs ""
:scheduleStartMs ""
:tagManagerUrl ""
:type ""
:variableId ""
:workspaceId ""}}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:resolve_conflict"),
Content = new StringContent("{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:resolve_conflict");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict"
payload := strings.NewReader("{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:resolve_conflict HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3065
{
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict")
.setHeader("content-type", "application/json")
.setBody("{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:resolve_conflict"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:resolve_conflict")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:resolve_conflict")
.header("content-type", "application/json")
.body("{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}")
.asString();
const data = JSON.stringify({
changeStatus: '',
client: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
},
folder: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
tag: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [
{
stopOnSetupFailure: false,
tagName: ''
}
],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [
{
stopTeardownOnFailure: false,
tagName: ''
}
],
type: '',
workspaceId: ''
},
trigger: {
accountId: '',
autoEventFilter: [
{
parameter: [
{}
],
type: ''
}
],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [
{}
],
eventName: {},
filter: [
{}
],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
},
variable: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict',
headers: {'content-type': 'application/json'},
data: {
changeStatus: '',
client: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
},
folder: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
tag: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {consentStatus: '', consentType: {}},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
},
trigger: {
accountId: '',
autoEventFilter: [{parameter: [{}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
},
variable: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"changeStatus":"","client":{"accountId":"","clientId":"","containerId":"","fingerprint":"","name":"","notes":"","parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"parentFolderId":"","path":"","priority":0,"tagManagerUrl":"","type":"","workspaceId":""},"folder":{"accountId":"","containerId":"","fingerprint":"","folderId":"","name":"","notes":"","path":"","tagManagerUrl":"","workspaceId":""},"tag":{"accountId":"","blockingRuleId":[],"blockingTriggerId":[],"consentSettings":{"consentStatus":"","consentType":{}},"containerId":"","fingerprint":"","firingRuleId":[],"firingTriggerId":[],"liveOnly":false,"monitoringMetadata":{},"monitoringMetadataTagNameKey":"","name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","paused":false,"priority":{},"scheduleEndMs":"","scheduleStartMs":"","setupTag":[{"stopOnSetupFailure":false,"tagName":""}],"tagFiringOption":"","tagId":"","tagManagerUrl":"","teardownTag":[{"stopTeardownOnFailure":false,"tagName":""}],"type":"","workspaceId":""},"trigger":{"accountId":"","autoEventFilter":[{"parameter":[{}],"type":""}],"checkValidation":{},"containerId":"","continuousTimeMinMilliseconds":{},"customEventFilter":[{}],"eventName":{},"filter":[{}],"fingerprint":"","horizontalScrollPercentageList":{},"interval":{},"intervalSeconds":{},"limit":{},"maxTimerLengthSeconds":{},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","selector":{},"tagManagerUrl":"","totalTimeMinMilliseconds":{},"triggerId":"","type":"","uniqueTriggerId":{},"verticalScrollPercentageList":{},"visibilitySelector":{},"visiblePercentageMax":{},"visiblePercentageMin":{},"waitForTags":{},"waitForTagsTimeout":{},"workspaceId":""},"variable":{"accountId":"","containerId":"","disablingTriggerId":[],"enablingTriggerId":[],"fingerprint":"","formatValue":{"caseConversionType":"","convertFalseToValue":{},"convertNullToValue":{},"convertTrueToValue":{},"convertUndefinedToValue":{}},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","scheduleEndMs":"","scheduleStartMs":"","tagManagerUrl":"","type":"","variableId":"","workspaceId":""}}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "changeStatus": "",\n "client": {\n "accountId": "",\n "clientId": "",\n "containerId": "",\n "fingerprint": "",\n "name": "",\n "notes": "",\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "parentFolderId": "",\n "path": "",\n "priority": 0,\n "tagManagerUrl": "",\n "type": "",\n "workspaceId": ""\n },\n "folder": {\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "folderId": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n },\n "tag": {\n "accountId": "",\n "blockingRuleId": [],\n "blockingTriggerId": [],\n "consentSettings": {\n "consentStatus": "",\n "consentType": {}\n },\n "containerId": "",\n "fingerprint": "",\n "firingRuleId": [],\n "firingTriggerId": [],\n "liveOnly": false,\n "monitoringMetadata": {},\n "monitoringMetadataTagNameKey": "",\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "paused": false,\n "priority": {},\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "setupTag": [\n {\n "stopOnSetupFailure": false,\n "tagName": ""\n }\n ],\n "tagFiringOption": "",\n "tagId": "",\n "tagManagerUrl": "",\n "teardownTag": [\n {\n "stopTeardownOnFailure": false,\n "tagName": ""\n }\n ],\n "type": "",\n "workspaceId": ""\n },\n "trigger": {\n "accountId": "",\n "autoEventFilter": [\n {\n "parameter": [\n {}\n ],\n "type": ""\n }\n ],\n "checkValidation": {},\n "containerId": "",\n "continuousTimeMinMilliseconds": {},\n "customEventFilter": [\n {}\n ],\n "eventName": {},\n "filter": [\n {}\n ],\n "fingerprint": "",\n "horizontalScrollPercentageList": {},\n "interval": {},\n "intervalSeconds": {},\n "limit": {},\n "maxTimerLengthSeconds": {},\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "selector": {},\n "tagManagerUrl": "",\n "totalTimeMinMilliseconds": {},\n "triggerId": "",\n "type": "",\n "uniqueTriggerId": {},\n "verticalScrollPercentageList": {},\n "visibilitySelector": {},\n "visiblePercentageMax": {},\n "visiblePercentageMin": {},\n "waitForTags": {},\n "waitForTagsTimeout": {},\n "workspaceId": ""\n },\n "variable": {\n "accountId": "",\n "containerId": "",\n "disablingTriggerId": [],\n "enablingTriggerId": [],\n "fingerprint": "",\n "formatValue": {\n "caseConversionType": "",\n "convertFalseToValue": {},\n "convertNullToValue": {},\n "convertTrueToValue": {},\n "convertUndefinedToValue": {}\n },\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "tagManagerUrl": "",\n "type": "",\n "variableId": "",\n "workspaceId": ""\n }\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:resolve_conflict")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:resolve_conflict',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
changeStatus: '',
client: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
},
folder: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
tag: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {consentStatus: '', consentType: {}},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
},
trigger: {
accountId: '',
autoEventFilter: [{parameter: [{}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
},
variable: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict',
headers: {'content-type': 'application/json'},
body: {
changeStatus: '',
client: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
},
folder: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
tag: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {consentStatus: '', consentType: {}},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
},
trigger: {
accountId: '',
autoEventFilter: [{parameter: [{}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
},
variable: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
changeStatus: '',
client: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
},
folder: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
tag: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [
{
stopOnSetupFailure: false,
tagName: ''
}
],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [
{
stopTeardownOnFailure: false,
tagName: ''
}
],
type: '',
workspaceId: ''
},
trigger: {
accountId: '',
autoEventFilter: [
{
parameter: [
{}
],
type: ''
}
],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [
{}
],
eventName: {},
filter: [
{}
],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
},
variable: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict',
headers: {'content-type': 'application/json'},
data: {
changeStatus: '',
client: {
accountId: '',
clientId: '',
containerId: '',
fingerprint: '',
name: '',
notes: '',
parameter: [{key: '', list: [], map: [], type: '', value: ''}],
parentFolderId: '',
path: '',
priority: 0,
tagManagerUrl: '',
type: '',
workspaceId: ''
},
folder: {
accountId: '',
containerId: '',
fingerprint: '',
folderId: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
workspaceId: ''
},
tag: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {consentStatus: '', consentType: {}},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
},
trigger: {
accountId: '',
autoEventFilter: [{parameter: [{}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
},
variable: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"changeStatus":"","client":{"accountId":"","clientId":"","containerId":"","fingerprint":"","name":"","notes":"","parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"parentFolderId":"","path":"","priority":0,"tagManagerUrl":"","type":"","workspaceId":""},"folder":{"accountId":"","containerId":"","fingerprint":"","folderId":"","name":"","notes":"","path":"","tagManagerUrl":"","workspaceId":""},"tag":{"accountId":"","blockingRuleId":[],"blockingTriggerId":[],"consentSettings":{"consentStatus":"","consentType":{}},"containerId":"","fingerprint":"","firingRuleId":[],"firingTriggerId":[],"liveOnly":false,"monitoringMetadata":{},"monitoringMetadataTagNameKey":"","name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","paused":false,"priority":{},"scheduleEndMs":"","scheduleStartMs":"","setupTag":[{"stopOnSetupFailure":false,"tagName":""}],"tagFiringOption":"","tagId":"","tagManagerUrl":"","teardownTag":[{"stopTeardownOnFailure":false,"tagName":""}],"type":"","workspaceId":""},"trigger":{"accountId":"","autoEventFilter":[{"parameter":[{}],"type":""}],"checkValidation":{},"containerId":"","continuousTimeMinMilliseconds":{},"customEventFilter":[{}],"eventName":{},"filter":[{}],"fingerprint":"","horizontalScrollPercentageList":{},"interval":{},"intervalSeconds":{},"limit":{},"maxTimerLengthSeconds":{},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","selector":{},"tagManagerUrl":"","totalTimeMinMilliseconds":{},"triggerId":"","type":"","uniqueTriggerId":{},"verticalScrollPercentageList":{},"visibilitySelector":{},"visiblePercentageMax":{},"visiblePercentageMin":{},"waitForTags":{},"waitForTagsTimeout":{},"workspaceId":""},"variable":{"accountId":"","containerId":"","disablingTriggerId":[],"enablingTriggerId":[],"fingerprint":"","formatValue":{"caseConversionType":"","convertFalseToValue":{},"convertNullToValue":{},"convertTrueToValue":{},"convertUndefinedToValue":{}},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","scheduleEndMs":"","scheduleStartMs":"","tagManagerUrl":"","type":"","variableId":"","workspaceId":""}}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"changeStatus": @"",
@"client": @{ @"accountId": @"", @"clientId": @"", @"containerId": @"", @"fingerprint": @"", @"name": @"", @"notes": @"", @"parameter": @[ @{ @"key": @"", @"list": @[ ], @"map": @[ ], @"type": @"", @"value": @"" } ], @"parentFolderId": @"", @"path": @"", @"priority": @0, @"tagManagerUrl": @"", @"type": @"", @"workspaceId": @"" },
@"folder": @{ @"accountId": @"", @"containerId": @"", @"fingerprint": @"", @"folderId": @"", @"name": @"", @"notes": @"", @"path": @"", @"tagManagerUrl": @"", @"workspaceId": @"" },
@"tag": @{ @"accountId": @"", @"blockingRuleId": @[ ], @"blockingTriggerId": @[ ], @"consentSettings": @{ @"consentStatus": @"", @"consentType": @{ } }, @"containerId": @"", @"fingerprint": @"", @"firingRuleId": @[ ], @"firingTriggerId": @[ ], @"liveOnly": @NO, @"monitoringMetadata": @{ }, @"monitoringMetadataTagNameKey": @"", @"name": @"", @"notes": @"", @"parameter": @[ @{ } ], @"parentFolderId": @"", @"path": @"", @"paused": @NO, @"priority": @{ }, @"scheduleEndMs": @"", @"scheduleStartMs": @"", @"setupTag": @[ @{ @"stopOnSetupFailure": @NO, @"tagName": @"" } ], @"tagFiringOption": @"", @"tagId": @"", @"tagManagerUrl": @"", @"teardownTag": @[ @{ @"stopTeardownOnFailure": @NO, @"tagName": @"" } ], @"type": @"", @"workspaceId": @"" },
@"trigger": @{ @"accountId": @"", @"autoEventFilter": @[ @{ @"parameter": @[ @{ } ], @"type": @"" } ], @"checkValidation": @{ }, @"containerId": @"", @"continuousTimeMinMilliseconds": @{ }, @"customEventFilter": @[ @{ } ], @"eventName": @{ }, @"filter": @[ @{ } ], @"fingerprint": @"", @"horizontalScrollPercentageList": @{ }, @"interval": @{ }, @"intervalSeconds": @{ }, @"limit": @{ }, @"maxTimerLengthSeconds": @{ }, @"name": @"", @"notes": @"", @"parameter": @[ @{ } ], @"parentFolderId": @"", @"path": @"", @"selector": @{ }, @"tagManagerUrl": @"", @"totalTimeMinMilliseconds": @{ }, @"triggerId": @"", @"type": @"", @"uniqueTriggerId": @{ }, @"verticalScrollPercentageList": @{ }, @"visibilitySelector": @{ }, @"visiblePercentageMax": @{ }, @"visiblePercentageMin": @{ }, @"waitForTags": @{ }, @"waitForTagsTimeout": @{ }, @"workspaceId": @"" },
@"variable": @{ @"accountId": @"", @"containerId": @"", @"disablingTriggerId": @[ ], @"enablingTriggerId": @[ ], @"fingerprint": @"", @"formatValue": @{ @"caseConversionType": @"", @"convertFalseToValue": @{ }, @"convertNullToValue": @{ }, @"convertTrueToValue": @{ }, @"convertUndefinedToValue": @{ } }, @"name": @"", @"notes": @"", @"parameter": @[ @{ } ], @"parentFolderId": @"", @"path": @"", @"scheduleEndMs": @"", @"scheduleStartMs": @"", @"tagManagerUrl": @"", @"type": @"", @"variableId": @"", @"workspaceId": @"" } };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:resolve_conflict"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:resolve_conflict",
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([
'changeStatus' => '',
'client' => [
'accountId' => '',
'clientId' => '',
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'parentFolderId' => '',
'path' => '',
'priority' => 0,
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
],
'folder' => [
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
],
'tag' => [
'accountId' => '',
'blockingRuleId' => [
],
'blockingTriggerId' => [
],
'consentSettings' => [
'consentStatus' => '',
'consentType' => [
]
],
'containerId' => '',
'fingerprint' => '',
'firingRuleId' => [
],
'firingTriggerId' => [
],
'liveOnly' => null,
'monitoringMetadata' => [
],
'monitoringMetadataTagNameKey' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'paused' => null,
'priority' => [
],
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'setupTag' => [
[
'stopOnSetupFailure' => null,
'tagName' => ''
]
],
'tagFiringOption' => '',
'tagId' => '',
'tagManagerUrl' => '',
'teardownTag' => [
[
'stopTeardownOnFailure' => null,
'tagName' => ''
]
],
'type' => '',
'workspaceId' => ''
],
'trigger' => [
'accountId' => '',
'autoEventFilter' => [
[
'parameter' => [
[
]
],
'type' => ''
]
],
'checkValidation' => [
],
'containerId' => '',
'continuousTimeMinMilliseconds' => [
],
'customEventFilter' => [
[
]
],
'eventName' => [
],
'filter' => [
[
]
],
'fingerprint' => '',
'horizontalScrollPercentageList' => [
],
'interval' => [
],
'intervalSeconds' => [
],
'limit' => [
],
'maxTimerLengthSeconds' => [
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'selector' => [
],
'tagManagerUrl' => '',
'totalTimeMinMilliseconds' => [
],
'triggerId' => '',
'type' => '',
'uniqueTriggerId' => [
],
'verticalScrollPercentageList' => [
],
'visibilitySelector' => [
],
'visiblePercentageMax' => [
],
'visiblePercentageMin' => [
],
'waitForTags' => [
],
'waitForTagsTimeout' => [
],
'workspaceId' => ''
],
'variable' => [
'accountId' => '',
'containerId' => '',
'disablingTriggerId' => [
],
'enablingTriggerId' => [
],
'fingerprint' => '',
'formatValue' => [
'caseConversionType' => '',
'convertFalseToValue' => [
],
'convertNullToValue' => [
],
'convertTrueToValue' => [
],
'convertUndefinedToValue' => [
]
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'tagManagerUrl' => '',
'type' => '',
'variableId' => '',
'workspaceId' => ''
]
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict', [
'body' => '{
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:resolve_conflict');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'changeStatus' => '',
'client' => [
'accountId' => '',
'clientId' => '',
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'parentFolderId' => '',
'path' => '',
'priority' => 0,
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
],
'folder' => [
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
],
'tag' => [
'accountId' => '',
'blockingRuleId' => [
],
'blockingTriggerId' => [
],
'consentSettings' => [
'consentStatus' => '',
'consentType' => [
]
],
'containerId' => '',
'fingerprint' => '',
'firingRuleId' => [
],
'firingTriggerId' => [
],
'liveOnly' => null,
'monitoringMetadata' => [
],
'monitoringMetadataTagNameKey' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'paused' => null,
'priority' => [
],
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'setupTag' => [
[
'stopOnSetupFailure' => null,
'tagName' => ''
]
],
'tagFiringOption' => '',
'tagId' => '',
'tagManagerUrl' => '',
'teardownTag' => [
[
'stopTeardownOnFailure' => null,
'tagName' => ''
]
],
'type' => '',
'workspaceId' => ''
],
'trigger' => [
'accountId' => '',
'autoEventFilter' => [
[
'parameter' => [
[
]
],
'type' => ''
]
],
'checkValidation' => [
],
'containerId' => '',
'continuousTimeMinMilliseconds' => [
],
'customEventFilter' => [
[
]
],
'eventName' => [
],
'filter' => [
[
]
],
'fingerprint' => '',
'horizontalScrollPercentageList' => [
],
'interval' => [
],
'intervalSeconds' => [
],
'limit' => [
],
'maxTimerLengthSeconds' => [
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'selector' => [
],
'tagManagerUrl' => '',
'totalTimeMinMilliseconds' => [
],
'triggerId' => '',
'type' => '',
'uniqueTriggerId' => [
],
'verticalScrollPercentageList' => [
],
'visibilitySelector' => [
],
'visiblePercentageMax' => [
],
'visiblePercentageMin' => [
],
'waitForTags' => [
],
'waitForTagsTimeout' => [
],
'workspaceId' => ''
],
'variable' => [
'accountId' => '',
'containerId' => '',
'disablingTriggerId' => [
],
'enablingTriggerId' => [
],
'fingerprint' => '',
'formatValue' => [
'caseConversionType' => '',
'convertFalseToValue' => [
],
'convertNullToValue' => [
],
'convertTrueToValue' => [
],
'convertUndefinedToValue' => [
]
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'tagManagerUrl' => '',
'type' => '',
'variableId' => '',
'workspaceId' => ''
]
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'changeStatus' => '',
'client' => [
'accountId' => '',
'clientId' => '',
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'parentFolderId' => '',
'path' => '',
'priority' => 0,
'tagManagerUrl' => '',
'type' => '',
'workspaceId' => ''
],
'folder' => [
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'folderId' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'workspaceId' => ''
],
'tag' => [
'accountId' => '',
'blockingRuleId' => [
],
'blockingTriggerId' => [
],
'consentSettings' => [
'consentStatus' => '',
'consentType' => [
]
],
'containerId' => '',
'fingerprint' => '',
'firingRuleId' => [
],
'firingTriggerId' => [
],
'liveOnly' => null,
'monitoringMetadata' => [
],
'monitoringMetadataTagNameKey' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'paused' => null,
'priority' => [
],
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'setupTag' => [
[
'stopOnSetupFailure' => null,
'tagName' => ''
]
],
'tagFiringOption' => '',
'tagId' => '',
'tagManagerUrl' => '',
'teardownTag' => [
[
'stopTeardownOnFailure' => null,
'tagName' => ''
]
],
'type' => '',
'workspaceId' => ''
],
'trigger' => [
'accountId' => '',
'autoEventFilter' => [
[
'parameter' => [
[
]
],
'type' => ''
]
],
'checkValidation' => [
],
'containerId' => '',
'continuousTimeMinMilliseconds' => [
],
'customEventFilter' => [
[
]
],
'eventName' => [
],
'filter' => [
[
]
],
'fingerprint' => '',
'horizontalScrollPercentageList' => [
],
'interval' => [
],
'intervalSeconds' => [
],
'limit' => [
],
'maxTimerLengthSeconds' => [
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'selector' => [
],
'tagManagerUrl' => '',
'totalTimeMinMilliseconds' => [
],
'triggerId' => '',
'type' => '',
'uniqueTriggerId' => [
],
'verticalScrollPercentageList' => [
],
'visibilitySelector' => [
],
'visiblePercentageMax' => [
],
'visiblePercentageMin' => [
],
'waitForTags' => [
],
'waitForTagsTimeout' => [
],
'workspaceId' => ''
],
'variable' => [
'accountId' => '',
'containerId' => '',
'disablingTriggerId' => [
],
'enablingTriggerId' => [
],
'fingerprint' => '',
'formatValue' => [
'caseConversionType' => '',
'convertFalseToValue' => [
],
'convertNullToValue' => [
],
'convertTrueToValue' => [
],
'convertUndefinedToValue' => [
]
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'tagManagerUrl' => '',
'type' => '',
'variableId' => '',
'workspaceId' => ''
]
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:resolve_conflict');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:resolve_conflict' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:path:resolve_conflict", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict"
payload = {
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": False,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [{}],
"parentFolderId": "",
"path": "",
"paused": False,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": False,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": False,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [{}],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [{}],
"eventName": {},
"filter": [{}],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [{}],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [{}],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict"
payload <- "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:resolve_conflict")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:path:resolve_conflict') do |req|
req.body = "{\n \"changeStatus\": \"\",\n \"client\": {\n \"accountId\": \"\",\n \"clientId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"priority\": 0,\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"folder\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"folderId\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"workspaceId\": \"\"\n },\n \"tag\": {\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {}\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n },\n \"trigger\": {\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {}\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n },\n \"variable\": {\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {},\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n }\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict";
let payload = json!({
"changeStatus": "",
"client": json!({
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": (
json!({
"key": "",
"list": (),
"map": (),
"type": "",
"value": ""
})
),
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
}),
"folder": json!({
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
}),
"tag": json!({
"accountId": "",
"blockingRuleId": (),
"blockingTriggerId": (),
"consentSettings": json!({
"consentStatus": "",
"consentType": json!({})
}),
"containerId": "",
"fingerprint": "",
"firingRuleId": (),
"firingTriggerId": (),
"liveOnly": false,
"monitoringMetadata": json!({}),
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": (json!({})),
"parentFolderId": "",
"path": "",
"paused": false,
"priority": json!({}),
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": (
json!({
"stopOnSetupFailure": false,
"tagName": ""
})
),
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": (
json!({
"stopTeardownOnFailure": false,
"tagName": ""
})
),
"type": "",
"workspaceId": ""
}),
"trigger": json!({
"accountId": "",
"autoEventFilter": (
json!({
"parameter": (json!({})),
"type": ""
})
),
"checkValidation": json!({}),
"containerId": "",
"continuousTimeMinMilliseconds": json!({}),
"customEventFilter": (json!({})),
"eventName": json!({}),
"filter": (json!({})),
"fingerprint": "",
"horizontalScrollPercentageList": json!({}),
"interval": json!({}),
"intervalSeconds": json!({}),
"limit": json!({}),
"maxTimerLengthSeconds": json!({}),
"name": "",
"notes": "",
"parameter": (json!({})),
"parentFolderId": "",
"path": "",
"selector": json!({}),
"tagManagerUrl": "",
"totalTimeMinMilliseconds": json!({}),
"triggerId": "",
"type": "",
"uniqueTriggerId": json!({}),
"verticalScrollPercentageList": json!({}),
"visibilitySelector": json!({}),
"visiblePercentageMax": json!({}),
"visiblePercentageMin": json!({}),
"waitForTags": json!({}),
"waitForTagsTimeout": json!({}),
"workspaceId": ""
}),
"variable": json!({
"accountId": "",
"containerId": "",
"disablingTriggerId": (),
"enablingTriggerId": (),
"fingerprint": "",
"formatValue": json!({
"caseConversionType": "",
"convertFalseToValue": json!({}),
"convertNullToValue": json!({}),
"convertTrueToValue": json!({}),
"convertUndefinedToValue": json!({})
}),
"name": "",
"notes": "",
"parameter": (json!({})),
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
})
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:resolve_conflict \
--header 'content-type: application/json' \
--data '{
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}'
echo '{
"changeStatus": "",
"client": {
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
},
"folder": {
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
},
"tag": {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
},
"trigger": {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
},
"variable": {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
}' | \
http POST {{baseUrl}}/tagmanager/v2/:path:resolve_conflict \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "changeStatus": "",\n "client": {\n "accountId": "",\n "clientId": "",\n "containerId": "",\n "fingerprint": "",\n "name": "",\n "notes": "",\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "parentFolderId": "",\n "path": "",\n "priority": 0,\n "tagManagerUrl": "",\n "type": "",\n "workspaceId": ""\n },\n "folder": {\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "folderId": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "workspaceId": ""\n },\n "tag": {\n "accountId": "",\n "blockingRuleId": [],\n "blockingTriggerId": [],\n "consentSettings": {\n "consentStatus": "",\n "consentType": {}\n },\n "containerId": "",\n "fingerprint": "",\n "firingRuleId": [],\n "firingTriggerId": [],\n "liveOnly": false,\n "monitoringMetadata": {},\n "monitoringMetadataTagNameKey": "",\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "paused": false,\n "priority": {},\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "setupTag": [\n {\n "stopOnSetupFailure": false,\n "tagName": ""\n }\n ],\n "tagFiringOption": "",\n "tagId": "",\n "tagManagerUrl": "",\n "teardownTag": [\n {\n "stopTeardownOnFailure": false,\n "tagName": ""\n }\n ],\n "type": "",\n "workspaceId": ""\n },\n "trigger": {\n "accountId": "",\n "autoEventFilter": [\n {\n "parameter": [\n {}\n ],\n "type": ""\n }\n ],\n "checkValidation": {},\n "containerId": "",\n "continuousTimeMinMilliseconds": {},\n "customEventFilter": [\n {}\n ],\n "eventName": {},\n "filter": [\n {}\n ],\n "fingerprint": "",\n "horizontalScrollPercentageList": {},\n "interval": {},\n "intervalSeconds": {},\n "limit": {},\n "maxTimerLengthSeconds": {},\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "selector": {},\n "tagManagerUrl": "",\n "totalTimeMinMilliseconds": {},\n "triggerId": "",\n "type": "",\n "uniqueTriggerId": {},\n "verticalScrollPercentageList": {},\n "visibilitySelector": {},\n "visiblePercentageMax": {},\n "visiblePercentageMin": {},\n "waitForTags": {},\n "waitForTagsTimeout": {},\n "workspaceId": ""\n },\n "variable": {\n "accountId": "",\n "containerId": "",\n "disablingTriggerId": [],\n "enablingTriggerId": [],\n "fingerprint": "",\n "formatValue": {\n "caseConversionType": "",\n "convertFalseToValue": {},\n "convertNullToValue": {},\n "convertTrueToValue": {},\n "convertUndefinedToValue": {}\n },\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "tagManagerUrl": "",\n "type": "",\n "variableId": "",\n "workspaceId": ""\n }\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:resolve_conflict
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"changeStatus": "",
"client": [
"accountId": "",
"clientId": "",
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"parameter": [
[
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
]
],
"parentFolderId": "",
"path": "",
"priority": 0,
"tagManagerUrl": "",
"type": "",
"workspaceId": ""
],
"folder": [
"accountId": "",
"containerId": "",
"fingerprint": "",
"folderId": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"workspaceId": ""
],
"tag": [
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": [
"consentStatus": "",
"consentType": []
],
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": [],
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [[]],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": [],
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
[
"stopOnSetupFailure": false,
"tagName": ""
]
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
[
"stopTeardownOnFailure": false,
"tagName": ""
]
],
"type": "",
"workspaceId": ""
],
"trigger": [
"accountId": "",
"autoEventFilter": [
[
"parameter": [[]],
"type": ""
]
],
"checkValidation": [],
"containerId": "",
"continuousTimeMinMilliseconds": [],
"customEventFilter": [[]],
"eventName": [],
"filter": [[]],
"fingerprint": "",
"horizontalScrollPercentageList": [],
"interval": [],
"intervalSeconds": [],
"limit": [],
"maxTimerLengthSeconds": [],
"name": "",
"notes": "",
"parameter": [[]],
"parentFolderId": "",
"path": "",
"selector": [],
"tagManagerUrl": "",
"totalTimeMinMilliseconds": [],
"triggerId": "",
"type": "",
"uniqueTriggerId": [],
"verticalScrollPercentageList": [],
"visibilitySelector": [],
"visiblePercentageMax": [],
"visiblePercentageMin": [],
"waitForTags": [],
"waitForTagsTimeout": [],
"workspaceId": ""
],
"variable": [
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": [
"caseConversionType": "",
"convertFalseToValue": [],
"convertNullToValue": [],
"convertTrueToValue": [],
"convertUndefinedToValue": []
],
"name": "",
"notes": "",
"parameter": [[]],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
]
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:resolve_conflict")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.sync
{{baseUrl}}/tagmanager/v2/:path:sync
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:sync");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:sync")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:sync"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:sync"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:sync");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:sync"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:sync HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:sync")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:sync"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:sync")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:sync")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:sync');
xhr.send(data);
import axios from 'axios';
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:sync'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:sync';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:sync',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:sync")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:sync',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:sync'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:sync');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:sync'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:sync';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:sync"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:sync" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:sync",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:sync');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:sync');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:sync');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:sync' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:sync' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:sync")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:sync"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:sync"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:sync")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:sync') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:sync";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:sync
http POST {{baseUrl}}/tagmanager/v2/:path:sync
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:sync
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:sync")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.tags.create
{{baseUrl}}/tagmanager/v2/:parent/tags
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/tags");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/tags" {:content-type :json
:form-params {:accountId ""
:blockingRuleId []
:blockingTriggerId []
:consentSettings {:consentStatus ""
:consentType {:key ""
:list []
:map []
:type ""
:value ""}}
:containerId ""
:fingerprint ""
:firingRuleId []
:firingTriggerId []
:liveOnly false
:monitoringMetadata {}
:monitoringMetadataTagNameKey ""
:name ""
:notes ""
:parameter [{}]
:parentFolderId ""
:path ""
:paused false
:priority {}
:scheduleEndMs ""
:scheduleStartMs ""
:setupTag [{:stopOnSetupFailure false
:tagName ""}]
:tagFiringOption ""
:tagId ""
:tagManagerUrl ""
:teardownTag [{:stopTeardownOnFailure false
:tagName ""}]
:type ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/tags"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/tags"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/tags");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/tags"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/tags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 877
{
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/tags")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/tags"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/tags")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/tags")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {
key: '',
list: [],
map: [],
type: '',
value: ''
}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [
{
stopOnSetupFailure: false,
tagName: ''
}
],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [
{
stopTeardownOnFailure: false,
tagName: ''
}
],
type: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/tags');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/tags',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {key: '', list: [], map: [], type: '', value: ''}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/tags';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","blockingRuleId":[],"blockingTriggerId":[],"consentSettings":{"consentStatus":"","consentType":{"key":"","list":[],"map":[],"type":"","value":""}},"containerId":"","fingerprint":"","firingRuleId":[],"firingTriggerId":[],"liveOnly":false,"monitoringMetadata":{},"monitoringMetadataTagNameKey":"","name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","paused":false,"priority":{},"scheduleEndMs":"","scheduleStartMs":"","setupTag":[{"stopOnSetupFailure":false,"tagName":""}],"tagFiringOption":"","tagId":"","tagManagerUrl":"","teardownTag":[{"stopTeardownOnFailure":false,"tagName":""}],"type":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/tags',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "blockingRuleId": [],\n "blockingTriggerId": [],\n "consentSettings": {\n "consentStatus": "",\n "consentType": {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n },\n "containerId": "",\n "fingerprint": "",\n "firingRuleId": [],\n "firingTriggerId": [],\n "liveOnly": false,\n "monitoringMetadata": {},\n "monitoringMetadataTagNameKey": "",\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "paused": false,\n "priority": {},\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "setupTag": [\n {\n "stopOnSetupFailure": false,\n "tagName": ""\n }\n ],\n "tagFiringOption": "",\n "tagId": "",\n "tagManagerUrl": "",\n "teardownTag": [\n {\n "stopTeardownOnFailure": false,\n "tagName": ""\n }\n ],\n "type": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/tags")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/tags',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {key: '', list: [], map: [], type: '', value: ''}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/tags',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {key: '', list: [], map: [], type: '', value: ''}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/tags');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {
key: '',
list: [],
map: [],
type: '',
value: ''
}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [
{
stopOnSetupFailure: false,
tagName: ''
}
],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [
{
stopTeardownOnFailure: false,
tagName: ''
}
],
type: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/tags',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
blockingRuleId: [],
blockingTriggerId: [],
consentSettings: {
consentStatus: '',
consentType: {key: '', list: [], map: [], type: '', value: ''}
},
containerId: '',
fingerprint: '',
firingRuleId: [],
firingTriggerId: [],
liveOnly: false,
monitoringMetadata: {},
monitoringMetadataTagNameKey: '',
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
paused: false,
priority: {},
scheduleEndMs: '',
scheduleStartMs: '',
setupTag: [{stopOnSetupFailure: false, tagName: ''}],
tagFiringOption: '',
tagId: '',
tagManagerUrl: '',
teardownTag: [{stopTeardownOnFailure: false, tagName: ''}],
type: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/tags';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","blockingRuleId":[],"blockingTriggerId":[],"consentSettings":{"consentStatus":"","consentType":{"key":"","list":[],"map":[],"type":"","value":""}},"containerId":"","fingerprint":"","firingRuleId":[],"firingTriggerId":[],"liveOnly":false,"monitoringMetadata":{},"monitoringMetadataTagNameKey":"","name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","paused":false,"priority":{},"scheduleEndMs":"","scheduleStartMs":"","setupTag":[{"stopOnSetupFailure":false,"tagName":""}],"tagFiringOption":"","tagId":"","tagManagerUrl":"","teardownTag":[{"stopTeardownOnFailure":false,"tagName":""}],"type":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"blockingRuleId": @[ ],
@"blockingTriggerId": @[ ],
@"consentSettings": @{ @"consentStatus": @"", @"consentType": @{ @"key": @"", @"list": @[ ], @"map": @[ ], @"type": @"", @"value": @"" } },
@"containerId": @"",
@"fingerprint": @"",
@"firingRuleId": @[ ],
@"firingTriggerId": @[ ],
@"liveOnly": @NO,
@"monitoringMetadata": @{ },
@"monitoringMetadataTagNameKey": @"",
@"name": @"",
@"notes": @"",
@"parameter": @[ @{ } ],
@"parentFolderId": @"",
@"path": @"",
@"paused": @NO,
@"priority": @{ },
@"scheduleEndMs": @"",
@"scheduleStartMs": @"",
@"setupTag": @[ @{ @"stopOnSetupFailure": @NO, @"tagName": @"" } ],
@"tagFiringOption": @"",
@"tagId": @"",
@"tagManagerUrl": @"",
@"teardownTag": @[ @{ @"stopTeardownOnFailure": @NO, @"tagName": @"" } ],
@"type": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/tags"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/tags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/tags",
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([
'accountId' => '',
'blockingRuleId' => [
],
'blockingTriggerId' => [
],
'consentSettings' => [
'consentStatus' => '',
'consentType' => [
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'containerId' => '',
'fingerprint' => '',
'firingRuleId' => [
],
'firingTriggerId' => [
],
'liveOnly' => null,
'monitoringMetadata' => [
],
'monitoringMetadataTagNameKey' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'paused' => null,
'priority' => [
],
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'setupTag' => [
[
'stopOnSetupFailure' => null,
'tagName' => ''
]
],
'tagFiringOption' => '',
'tagId' => '',
'tagManagerUrl' => '',
'teardownTag' => [
[
'stopTeardownOnFailure' => null,
'tagName' => ''
]
],
'type' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/tags', [
'body' => '{
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/tags');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'blockingRuleId' => [
],
'blockingTriggerId' => [
],
'consentSettings' => [
'consentStatus' => '',
'consentType' => [
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'containerId' => '',
'fingerprint' => '',
'firingRuleId' => [
],
'firingTriggerId' => [
],
'liveOnly' => null,
'monitoringMetadata' => [
],
'monitoringMetadataTagNameKey' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'paused' => null,
'priority' => [
],
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'setupTag' => [
[
'stopOnSetupFailure' => null,
'tagName' => ''
]
],
'tagFiringOption' => '',
'tagId' => '',
'tagManagerUrl' => '',
'teardownTag' => [
[
'stopTeardownOnFailure' => null,
'tagName' => ''
]
],
'type' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'blockingRuleId' => [
],
'blockingTriggerId' => [
],
'consentSettings' => [
'consentStatus' => '',
'consentType' => [
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'containerId' => '',
'fingerprint' => '',
'firingRuleId' => [
],
'firingTriggerId' => [
],
'liveOnly' => null,
'monitoringMetadata' => [
],
'monitoringMetadataTagNameKey' => '',
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'paused' => null,
'priority' => [
],
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'setupTag' => [
[
'stopOnSetupFailure' => null,
'tagName' => ''
]
],
'tagFiringOption' => '',
'tagId' => '',
'tagManagerUrl' => '',
'teardownTag' => [
[
'stopTeardownOnFailure' => null,
'tagName' => ''
]
],
'type' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/tags');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/tags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/tags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/tags", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/tags"
payload = {
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": False,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [{}],
"parentFolderId": "",
"path": "",
"paused": False,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": False,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": False,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/tags"
payload <- "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/tags') do |req|
req.body = "{\n \"accountId\": \"\",\n \"blockingRuleId\": [],\n \"blockingTriggerId\": [],\n \"consentSettings\": {\n \"consentStatus\": \"\",\n \"consentType\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n },\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"firingRuleId\": [],\n \"firingTriggerId\": [],\n \"liveOnly\": false,\n \"monitoringMetadata\": {},\n \"monitoringMetadataTagNameKey\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"paused\": false,\n \"priority\": {},\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"setupTag\": [\n {\n \"stopOnSetupFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"tagFiringOption\": \"\",\n \"tagId\": \"\",\n \"tagManagerUrl\": \"\",\n \"teardownTag\": [\n {\n \"stopTeardownOnFailure\": false,\n \"tagName\": \"\"\n }\n ],\n \"type\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/tags";
let payload = json!({
"accountId": "",
"blockingRuleId": (),
"blockingTriggerId": (),
"consentSettings": json!({
"consentStatus": "",
"consentType": json!({
"key": "",
"list": (),
"map": (),
"type": "",
"value": ""
})
}),
"containerId": "",
"fingerprint": "",
"firingRuleId": (),
"firingTriggerId": (),
"liveOnly": false,
"monitoringMetadata": json!({}),
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": (json!({})),
"parentFolderId": "",
"path": "",
"paused": false,
"priority": json!({}),
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": (
json!({
"stopOnSetupFailure": false,
"tagName": ""
})
),
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": (
json!({
"stopTeardownOnFailure": false,
"tagName": ""
})
),
"type": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/tags \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": {
"consentStatus": "",
"consentType": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
},
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": {},
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": {},
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
{
"stopOnSetupFailure": false,
"tagName": ""
}
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
{
"stopTeardownOnFailure": false,
"tagName": ""
}
],
"type": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/tags \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "blockingRuleId": [],\n "blockingTriggerId": [],\n "consentSettings": {\n "consentStatus": "",\n "consentType": {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n },\n "containerId": "",\n "fingerprint": "",\n "firingRuleId": [],\n "firingTriggerId": [],\n "liveOnly": false,\n "monitoringMetadata": {},\n "monitoringMetadataTagNameKey": "",\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "paused": false,\n "priority": {},\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "setupTag": [\n {\n "stopOnSetupFailure": false,\n "tagName": ""\n }\n ],\n "tagFiringOption": "",\n "tagId": "",\n "tagManagerUrl": "",\n "teardownTag": [\n {\n "stopTeardownOnFailure": false,\n "tagName": ""\n }\n ],\n "type": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/tags
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"blockingRuleId": [],
"blockingTriggerId": [],
"consentSettings": [
"consentStatus": "",
"consentType": [
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
]
],
"containerId": "",
"fingerprint": "",
"firingRuleId": [],
"firingTriggerId": [],
"liveOnly": false,
"monitoringMetadata": [],
"monitoringMetadataTagNameKey": "",
"name": "",
"notes": "",
"parameter": [[]],
"parentFolderId": "",
"path": "",
"paused": false,
"priority": [],
"scheduleEndMs": "",
"scheduleStartMs": "",
"setupTag": [
[
"stopOnSetupFailure": false,
"tagName": ""
]
],
"tagFiringOption": "",
"tagId": "",
"tagManagerUrl": "",
"teardownTag": [
[
"stopTeardownOnFailure": false,
"tagName": ""
]
],
"type": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/tags")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.tags.list
{{baseUrl}}/tagmanager/v2/:parent/tags
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/tags");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/tags")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/tags"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/tags"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/tags");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/tags"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/tags HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/tags")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/tags"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/tags")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/tags")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/tags');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:parent/tags'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/tags';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/tags',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/tags")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/tags',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:parent/tags'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/tags');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:parent/tags'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/tags';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/tags"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/tags" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/tags');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/tags');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/tags');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/tags' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/tags' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/tags")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/tags"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/tags"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/tags') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/tags";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/tags
http GET {{baseUrl}}/tagmanager/v2/:parent/tags
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/tags
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/tags")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.templates.create
{{baseUrl}}/tagmanager/v2/:parent/templates
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/templates");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/templates" {:content-type :json
:form-params {:accountId ""
:containerId ""
:fingerprint ""
:galleryReference {:host ""
:isModified false
:owner ""
:repository ""
:signature ""
:version ""}
:name ""
:path ""
:tagManagerUrl ""
:templateData ""
:templateId ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/templates"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/templates"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/templates");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/templates"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/templates HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 325
{
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/templates")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/templates"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/templates")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/templates")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
galleryReference: {
host: '',
isModified: false,
owner: '',
repository: '',
signature: '',
version: ''
},
name: '',
path: '',
tagManagerUrl: '',
templateData: '',
templateId: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/templates');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/templates',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
galleryReference: {
host: '',
isModified: false,
owner: '',
repository: '',
signature: '',
version: ''
},
name: '',
path: '',
tagManagerUrl: '',
templateData: '',
templateId: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/templates';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","galleryReference":{"host":"","isModified":false,"owner":"","repository":"","signature":"","version":""},"name":"","path":"","tagManagerUrl":"","templateData":"","templateId":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/templates',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "galleryReference": {\n "host": "",\n "isModified": false,\n "owner": "",\n "repository": "",\n "signature": "",\n "version": ""\n },\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "templateData": "",\n "templateId": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/templates")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/templates',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
containerId: '',
fingerprint: '',
galleryReference: {
host: '',
isModified: false,
owner: '',
repository: '',
signature: '',
version: ''
},
name: '',
path: '',
tagManagerUrl: '',
templateData: '',
templateId: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/templates',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
containerId: '',
fingerprint: '',
galleryReference: {
host: '',
isModified: false,
owner: '',
repository: '',
signature: '',
version: ''
},
name: '',
path: '',
tagManagerUrl: '',
templateData: '',
templateId: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/templates');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
containerId: '',
fingerprint: '',
galleryReference: {
host: '',
isModified: false,
owner: '',
repository: '',
signature: '',
version: ''
},
name: '',
path: '',
tagManagerUrl: '',
templateData: '',
templateId: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/templates',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
fingerprint: '',
galleryReference: {
host: '',
isModified: false,
owner: '',
repository: '',
signature: '',
version: ''
},
name: '',
path: '',
tagManagerUrl: '',
templateData: '',
templateId: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/templates';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","fingerprint":"","galleryReference":{"host":"","isModified":false,"owner":"","repository":"","signature":"","version":""},"name":"","path":"","tagManagerUrl":"","templateData":"","templateId":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"containerId": @"",
@"fingerprint": @"",
@"galleryReference": @{ @"host": @"", @"isModified": @NO, @"owner": @"", @"repository": @"", @"signature": @"", @"version": @"" },
@"name": @"",
@"path": @"",
@"tagManagerUrl": @"",
@"templateData": @"",
@"templateId": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/templates"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/templates" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/templates",
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([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'galleryReference' => [
'host' => '',
'isModified' => null,
'owner' => '',
'repository' => '',
'signature' => '',
'version' => ''
],
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'templateData' => '',
'templateId' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/templates', [
'body' => '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/templates');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'galleryReference' => [
'host' => '',
'isModified' => null,
'owner' => '',
'repository' => '',
'signature' => '',
'version' => ''
],
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'templateData' => '',
'templateId' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'containerId' => '',
'fingerprint' => '',
'galleryReference' => [
'host' => '',
'isModified' => null,
'owner' => '',
'repository' => '',
'signature' => '',
'version' => ''
],
'name' => '',
'path' => '',
'tagManagerUrl' => '',
'templateData' => '',
'templateId' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/templates');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/templates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/templates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/templates", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/templates"
payload = {
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": False,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/templates"
payload <- "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/templates') do |req|
req.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"galleryReference\": {\n \"host\": \"\",\n \"isModified\": false,\n \"owner\": \"\",\n \"repository\": \"\",\n \"signature\": \"\",\n \"version\": \"\"\n },\n \"name\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"templateData\": \"\",\n \"templateId\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/templates";
let payload = json!({
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": json!({
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
}),
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/templates \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": {
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
},
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/templates \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "containerId": "",\n "fingerprint": "",\n "galleryReference": {\n "host": "",\n "isModified": false,\n "owner": "",\n "repository": "",\n "signature": "",\n "version": ""\n },\n "name": "",\n "path": "",\n "tagManagerUrl": "",\n "templateData": "",\n "templateId": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/templates
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"containerId": "",
"fingerprint": "",
"galleryReference": [
"host": "",
"isModified": false,
"owner": "",
"repository": "",
"signature": "",
"version": ""
],
"name": "",
"path": "",
"tagManagerUrl": "",
"templateData": "",
"templateId": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/templates")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.templates.list
{{baseUrl}}/tagmanager/v2/:parent/templates
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/templates");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/templates")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/templates"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/templates"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/templates");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/templates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/templates HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/templates")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/templates"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/templates")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/templates")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/templates');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/templates'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/templates';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/templates',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/templates")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/templates',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/templates'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/templates');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/templates'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/templates';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/templates"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/templates" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/templates');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/templates');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/templates');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/templates' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/templates' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/templates")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/templates"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/templates"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/templates') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/templates";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/templates
http GET {{baseUrl}}/tagmanager/v2/:parent/templates
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/templates
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/templates")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.triggers.create
{{baseUrl}}/tagmanager/v2/:parent/triggers
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/triggers");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/triggers" {:content-type :json
:form-params {:accountId ""
:autoEventFilter [{:parameter [{:key ""
:list []
:map []
:type ""
:value ""}]
:type ""}]
:checkValidation {}
:containerId ""
:continuousTimeMinMilliseconds {}
:customEventFilter [{}]
:eventName {}
:filter [{}]
:fingerprint ""
:horizontalScrollPercentageList {}
:interval {}
:intervalSeconds {}
:limit {}
:maxTimerLengthSeconds {}
:name ""
:notes ""
:parameter [{}]
:parentFolderId ""
:path ""
:selector {}
:tagManagerUrl ""
:totalTimeMinMilliseconds {}
:triggerId ""
:type ""
:uniqueTriggerId {}
:verticalScrollPercentageList {}
:visibilitySelector {}
:visiblePercentageMax {}
:visiblePercentageMin {}
:waitForTags {}
:waitForTagsTimeout {}
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/triggers"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/triggers"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/triggers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/triggers"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/triggers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 978
{
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/triggers")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/triggers"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/triggers")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/triggers")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
autoEventFilter: [
{
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
type: ''
}
],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [
{}
],
eventName: {},
filter: [
{}
],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/triggers');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
autoEventFilter: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/triggers';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","autoEventFilter":[{"parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"type":""}],"checkValidation":{},"containerId":"","continuousTimeMinMilliseconds":{},"customEventFilter":[{}],"eventName":{},"filter":[{}],"fingerprint":"","horizontalScrollPercentageList":{},"interval":{},"intervalSeconds":{},"limit":{},"maxTimerLengthSeconds":{},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","selector":{},"tagManagerUrl":"","totalTimeMinMilliseconds":{},"triggerId":"","type":"","uniqueTriggerId":{},"verticalScrollPercentageList":{},"visibilitySelector":{},"visiblePercentageMax":{},"visiblePercentageMin":{},"waitForTags":{},"waitForTagsTimeout":{},"workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "autoEventFilter": [\n {\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "type": ""\n }\n ],\n "checkValidation": {},\n "containerId": "",\n "continuousTimeMinMilliseconds": {},\n "customEventFilter": [\n {}\n ],\n "eventName": {},\n "filter": [\n {}\n ],\n "fingerprint": "",\n "horizontalScrollPercentageList": {},\n "interval": {},\n "intervalSeconds": {},\n "limit": {},\n "maxTimerLengthSeconds": {},\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "selector": {},\n "tagManagerUrl": "",\n "totalTimeMinMilliseconds": {},\n "triggerId": "",\n "type": "",\n "uniqueTriggerId": {},\n "verticalScrollPercentageList": {},\n "visibilitySelector": {},\n "visiblePercentageMax": {},\n "visiblePercentageMin": {},\n "waitForTags": {},\n "waitForTagsTimeout": {},\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/triggers")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/triggers',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
autoEventFilter: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
autoEventFilter: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/triggers');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
autoEventFilter: [
{
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
type: ''
}
],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [
{}
],
eventName: {},
filter: [
{}
],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
autoEventFilter: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
checkValidation: {},
containerId: '',
continuousTimeMinMilliseconds: {},
customEventFilter: [{}],
eventName: {},
filter: [{}],
fingerprint: '',
horizontalScrollPercentageList: {},
interval: {},
intervalSeconds: {},
limit: {},
maxTimerLengthSeconds: {},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
selector: {},
tagManagerUrl: '',
totalTimeMinMilliseconds: {},
triggerId: '',
type: '',
uniqueTriggerId: {},
verticalScrollPercentageList: {},
visibilitySelector: {},
visiblePercentageMax: {},
visiblePercentageMin: {},
waitForTags: {},
waitForTagsTimeout: {},
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/triggers';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","autoEventFilter":[{"parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"type":""}],"checkValidation":{},"containerId":"","continuousTimeMinMilliseconds":{},"customEventFilter":[{}],"eventName":{},"filter":[{}],"fingerprint":"","horizontalScrollPercentageList":{},"interval":{},"intervalSeconds":{},"limit":{},"maxTimerLengthSeconds":{},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","selector":{},"tagManagerUrl":"","totalTimeMinMilliseconds":{},"triggerId":"","type":"","uniqueTriggerId":{},"verticalScrollPercentageList":{},"visibilitySelector":{},"visiblePercentageMax":{},"visiblePercentageMin":{},"waitForTags":{},"waitForTagsTimeout":{},"workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"autoEventFilter": @[ @{ @"parameter": @[ @{ @"key": @"", @"list": @[ ], @"map": @[ ], @"type": @"", @"value": @"" } ], @"type": @"" } ],
@"checkValidation": @{ },
@"containerId": @"",
@"continuousTimeMinMilliseconds": @{ },
@"customEventFilter": @[ @{ } ],
@"eventName": @{ },
@"filter": @[ @{ } ],
@"fingerprint": @"",
@"horizontalScrollPercentageList": @{ },
@"interval": @{ },
@"intervalSeconds": @{ },
@"limit": @{ },
@"maxTimerLengthSeconds": @{ },
@"name": @"",
@"notes": @"",
@"parameter": @[ @{ } ],
@"parentFolderId": @"",
@"path": @"",
@"selector": @{ },
@"tagManagerUrl": @"",
@"totalTimeMinMilliseconds": @{ },
@"triggerId": @"",
@"type": @"",
@"uniqueTriggerId": @{ },
@"verticalScrollPercentageList": @{ },
@"visibilitySelector": @{ },
@"visiblePercentageMax": @{ },
@"visiblePercentageMin": @{ },
@"waitForTags": @{ },
@"waitForTagsTimeout": @{ },
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/triggers"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/triggers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/triggers",
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([
'accountId' => '',
'autoEventFilter' => [
[
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'type' => ''
]
],
'checkValidation' => [
],
'containerId' => '',
'continuousTimeMinMilliseconds' => [
],
'customEventFilter' => [
[
]
],
'eventName' => [
],
'filter' => [
[
]
],
'fingerprint' => '',
'horizontalScrollPercentageList' => [
],
'interval' => [
],
'intervalSeconds' => [
],
'limit' => [
],
'maxTimerLengthSeconds' => [
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'selector' => [
],
'tagManagerUrl' => '',
'totalTimeMinMilliseconds' => [
],
'triggerId' => '',
'type' => '',
'uniqueTriggerId' => [
],
'verticalScrollPercentageList' => [
],
'visibilitySelector' => [
],
'visiblePercentageMax' => [
],
'visiblePercentageMin' => [
],
'waitForTags' => [
],
'waitForTagsTimeout' => [
],
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/triggers', [
'body' => '{
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/triggers');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'autoEventFilter' => [
[
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'type' => ''
]
],
'checkValidation' => [
],
'containerId' => '',
'continuousTimeMinMilliseconds' => [
],
'customEventFilter' => [
[
]
],
'eventName' => [
],
'filter' => [
[
]
],
'fingerprint' => '',
'horizontalScrollPercentageList' => [
],
'interval' => [
],
'intervalSeconds' => [
],
'limit' => [
],
'maxTimerLengthSeconds' => [
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'selector' => [
],
'tagManagerUrl' => '',
'totalTimeMinMilliseconds' => [
],
'triggerId' => '',
'type' => '',
'uniqueTriggerId' => [
],
'verticalScrollPercentageList' => [
],
'visibilitySelector' => [
],
'visiblePercentageMax' => [
],
'visiblePercentageMin' => [
],
'waitForTags' => [
],
'waitForTagsTimeout' => [
],
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'autoEventFilter' => [
[
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'type' => ''
]
],
'checkValidation' => [
],
'containerId' => '',
'continuousTimeMinMilliseconds' => [
],
'customEventFilter' => [
[
]
],
'eventName' => [
],
'filter' => [
[
]
],
'fingerprint' => '',
'horizontalScrollPercentageList' => [
],
'interval' => [
],
'intervalSeconds' => [
],
'limit' => [
],
'maxTimerLengthSeconds' => [
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'selector' => [
],
'tagManagerUrl' => '',
'totalTimeMinMilliseconds' => [
],
'triggerId' => '',
'type' => '',
'uniqueTriggerId' => [
],
'verticalScrollPercentageList' => [
],
'visibilitySelector' => [
],
'visiblePercentageMax' => [
],
'visiblePercentageMin' => [
],
'waitForTags' => [
],
'waitForTagsTimeout' => [
],
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/triggers');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/triggers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/triggers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/triggers", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/triggers"
payload = {
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [{}],
"eventName": {},
"filter": [{}],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [{}],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/triggers"
payload <- "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/triggers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/triggers') do |req|
req.body = "{\n \"accountId\": \"\",\n \"autoEventFilter\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"checkValidation\": {},\n \"containerId\": \"\",\n \"continuousTimeMinMilliseconds\": {},\n \"customEventFilter\": [\n {}\n ],\n \"eventName\": {},\n \"filter\": [\n {}\n ],\n \"fingerprint\": \"\",\n \"horizontalScrollPercentageList\": {},\n \"interval\": {},\n \"intervalSeconds\": {},\n \"limit\": {},\n \"maxTimerLengthSeconds\": {},\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"selector\": {},\n \"tagManagerUrl\": \"\",\n \"totalTimeMinMilliseconds\": {},\n \"triggerId\": \"\",\n \"type\": \"\",\n \"uniqueTriggerId\": {},\n \"verticalScrollPercentageList\": {},\n \"visibilitySelector\": {},\n \"visiblePercentageMax\": {},\n \"visiblePercentageMin\": {},\n \"waitForTags\": {},\n \"waitForTagsTimeout\": {},\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/triggers";
let payload = json!({
"accountId": "",
"autoEventFilter": (
json!({
"parameter": (
json!({
"key": "",
"list": (),
"map": (),
"type": "",
"value": ""
})
),
"type": ""
})
),
"checkValidation": json!({}),
"containerId": "",
"continuousTimeMinMilliseconds": json!({}),
"customEventFilter": (json!({})),
"eventName": json!({}),
"filter": (json!({})),
"fingerprint": "",
"horizontalScrollPercentageList": json!({}),
"interval": json!({}),
"intervalSeconds": json!({}),
"limit": json!({}),
"maxTimerLengthSeconds": json!({}),
"name": "",
"notes": "",
"parameter": (json!({})),
"parentFolderId": "",
"path": "",
"selector": json!({}),
"tagManagerUrl": "",
"totalTimeMinMilliseconds": json!({}),
"triggerId": "",
"type": "",
"uniqueTriggerId": json!({}),
"verticalScrollPercentageList": json!({}),
"visibilitySelector": json!({}),
"visiblePercentageMax": json!({}),
"visiblePercentageMin": json!({}),
"waitForTags": json!({}),
"waitForTagsTimeout": json!({}),
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/triggers \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}'
echo '{
"accountId": "",
"autoEventFilter": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"checkValidation": {},
"containerId": "",
"continuousTimeMinMilliseconds": {},
"customEventFilter": [
{}
],
"eventName": {},
"filter": [
{}
],
"fingerprint": "",
"horizontalScrollPercentageList": {},
"interval": {},
"intervalSeconds": {},
"limit": {},
"maxTimerLengthSeconds": {},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"selector": {},
"tagManagerUrl": "",
"totalTimeMinMilliseconds": {},
"triggerId": "",
"type": "",
"uniqueTriggerId": {},
"verticalScrollPercentageList": {},
"visibilitySelector": {},
"visiblePercentageMax": {},
"visiblePercentageMin": {},
"waitForTags": {},
"waitForTagsTimeout": {},
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/triggers \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "autoEventFilter": [\n {\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "type": ""\n }\n ],\n "checkValidation": {},\n "containerId": "",\n "continuousTimeMinMilliseconds": {},\n "customEventFilter": [\n {}\n ],\n "eventName": {},\n "filter": [\n {}\n ],\n "fingerprint": "",\n "horizontalScrollPercentageList": {},\n "interval": {},\n "intervalSeconds": {},\n "limit": {},\n "maxTimerLengthSeconds": {},\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "selector": {},\n "tagManagerUrl": "",\n "totalTimeMinMilliseconds": {},\n "triggerId": "",\n "type": "",\n "uniqueTriggerId": {},\n "verticalScrollPercentageList": {},\n "visibilitySelector": {},\n "visiblePercentageMax": {},\n "visiblePercentageMin": {},\n "waitForTags": {},\n "waitForTagsTimeout": {},\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/triggers
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"autoEventFilter": [
[
"parameter": [
[
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
]
],
"type": ""
]
],
"checkValidation": [],
"containerId": "",
"continuousTimeMinMilliseconds": [],
"customEventFilter": [[]],
"eventName": [],
"filter": [[]],
"fingerprint": "",
"horizontalScrollPercentageList": [],
"interval": [],
"intervalSeconds": [],
"limit": [],
"maxTimerLengthSeconds": [],
"name": "",
"notes": "",
"parameter": [[]],
"parentFolderId": "",
"path": "",
"selector": [],
"tagManagerUrl": "",
"totalTimeMinMilliseconds": [],
"triggerId": "",
"type": "",
"uniqueTriggerId": [],
"verticalScrollPercentageList": [],
"visibilitySelector": [],
"visiblePercentageMax": [],
"visiblePercentageMin": [],
"waitForTags": [],
"waitForTagsTimeout": [],
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/triggers")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.triggers.list
{{baseUrl}}/tagmanager/v2/:parent/triggers
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/triggers");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/triggers")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/triggers"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/triggers"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/triggers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/triggers"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/triggers HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/triggers")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/triggers"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/triggers")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/triggers")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/triggers');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/triggers';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/triggers")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/triggers',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/triggers');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/triggers'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/triggers';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/triggers"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/triggers" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/triggers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/triggers');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/triggers');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/triggers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/triggers' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/triggers' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/triggers")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/triggers"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/triggers"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/triggers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/triggers') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/triggers";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/triggers
http GET {{baseUrl}}/tagmanager/v2/:parent/triggers
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/triggers
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/triggers")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.variables.create
{{baseUrl}}/tagmanager/v2/:parent/variables
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/variables");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/variables" {:content-type :json
:form-params {:accountId ""
:containerId ""
:disablingTriggerId []
:enablingTriggerId []
:fingerprint ""
:formatValue {:caseConversionType ""
:convertFalseToValue {:key ""
:list []
:map []
:type ""
:value ""}
:convertNullToValue {}
:convertTrueToValue {}
:convertUndefinedToValue {}}
:name ""
:notes ""
:parameter [{}]
:parentFolderId ""
:path ""
:scheduleEndMs ""
:scheduleStartMs ""
:tagManagerUrl ""
:type ""
:variableId ""
:workspaceId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/variables"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/variables"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/variables");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/variables"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/variables HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 612
{
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/variables")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/variables"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/variables")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/variables")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {
key: '',
list: [],
map: [],
type: '',
value: ''
},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/variables');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/variables',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {key: '', list: [], map: [], type: '', value: ''},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/variables';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","disablingTriggerId":[],"enablingTriggerId":[],"fingerprint":"","formatValue":{"caseConversionType":"","convertFalseToValue":{"key":"","list":[],"map":[],"type":"","value":""},"convertNullToValue":{},"convertTrueToValue":{},"convertUndefinedToValue":{}},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","scheduleEndMs":"","scheduleStartMs":"","tagManagerUrl":"","type":"","variableId":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/variables',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "containerId": "",\n "disablingTriggerId": [],\n "enablingTriggerId": [],\n "fingerprint": "",\n "formatValue": {\n "caseConversionType": "",\n "convertFalseToValue": {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n },\n "convertNullToValue": {},\n "convertTrueToValue": {},\n "convertUndefinedToValue": {}\n },\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "tagManagerUrl": "",\n "type": "",\n "variableId": "",\n "workspaceId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/variables")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/variables',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {key: '', list: [], map: [], type: '', value: ''},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/variables',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {key: '', list: [], map: [], type: '', value: ''},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/variables');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {
key: '',
list: [],
map: [],
type: '',
value: ''
},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [
{}
],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/variables',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
containerId: '',
disablingTriggerId: [],
enablingTriggerId: [],
fingerprint: '',
formatValue: {
caseConversionType: '',
convertFalseToValue: {key: '', list: [], map: [], type: '', value: ''},
convertNullToValue: {},
convertTrueToValue: {},
convertUndefinedToValue: {}
},
name: '',
notes: '',
parameter: [{}],
parentFolderId: '',
path: '',
scheduleEndMs: '',
scheduleStartMs: '',
tagManagerUrl: '',
type: '',
variableId: '',
workspaceId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/variables';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","containerId":"","disablingTriggerId":[],"enablingTriggerId":[],"fingerprint":"","formatValue":{"caseConversionType":"","convertFalseToValue":{"key":"","list":[],"map":[],"type":"","value":""},"convertNullToValue":{},"convertTrueToValue":{},"convertUndefinedToValue":{}},"name":"","notes":"","parameter":[{}],"parentFolderId":"","path":"","scheduleEndMs":"","scheduleStartMs":"","tagManagerUrl":"","type":"","variableId":"","workspaceId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"containerId": @"",
@"disablingTriggerId": @[ ],
@"enablingTriggerId": @[ ],
@"fingerprint": @"",
@"formatValue": @{ @"caseConversionType": @"", @"convertFalseToValue": @{ @"key": @"", @"list": @[ ], @"map": @[ ], @"type": @"", @"value": @"" }, @"convertNullToValue": @{ }, @"convertTrueToValue": @{ }, @"convertUndefinedToValue": @{ } },
@"name": @"",
@"notes": @"",
@"parameter": @[ @{ } ],
@"parentFolderId": @"",
@"path": @"",
@"scheduleEndMs": @"",
@"scheduleStartMs": @"",
@"tagManagerUrl": @"",
@"type": @"",
@"variableId": @"",
@"workspaceId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/variables"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/variables" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/variables",
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([
'accountId' => '',
'containerId' => '',
'disablingTriggerId' => [
],
'enablingTriggerId' => [
],
'fingerprint' => '',
'formatValue' => [
'caseConversionType' => '',
'convertFalseToValue' => [
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
],
'convertNullToValue' => [
],
'convertTrueToValue' => [
],
'convertUndefinedToValue' => [
]
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'tagManagerUrl' => '',
'type' => '',
'variableId' => '',
'workspaceId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/variables', [
'body' => '{
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/variables');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'containerId' => '',
'disablingTriggerId' => [
],
'enablingTriggerId' => [
],
'fingerprint' => '',
'formatValue' => [
'caseConversionType' => '',
'convertFalseToValue' => [
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
],
'convertNullToValue' => [
],
'convertTrueToValue' => [
],
'convertUndefinedToValue' => [
]
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'tagManagerUrl' => '',
'type' => '',
'variableId' => '',
'workspaceId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'containerId' => '',
'disablingTriggerId' => [
],
'enablingTriggerId' => [
],
'fingerprint' => '',
'formatValue' => [
'caseConversionType' => '',
'convertFalseToValue' => [
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
],
'convertNullToValue' => [
],
'convertTrueToValue' => [
],
'convertUndefinedToValue' => [
]
],
'name' => '',
'notes' => '',
'parameter' => [
[
]
],
'parentFolderId' => '',
'path' => '',
'scheduleEndMs' => '',
'scheduleStartMs' => '',
'tagManagerUrl' => '',
'type' => '',
'variableId' => '',
'workspaceId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/variables');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/variables' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/variables' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/variables", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/variables"
payload = {
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [{}],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/variables"
payload <- "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/variables') do |req|
req.body = "{\n \"accountId\": \"\",\n \"containerId\": \"\",\n \"disablingTriggerId\": [],\n \"enablingTriggerId\": [],\n \"fingerprint\": \"\",\n \"formatValue\": {\n \"caseConversionType\": \"\",\n \"convertFalseToValue\": {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n },\n \"convertNullToValue\": {},\n \"convertTrueToValue\": {},\n \"convertUndefinedToValue\": {}\n },\n \"name\": \"\",\n \"notes\": \"\",\n \"parameter\": [\n {}\n ],\n \"parentFolderId\": \"\",\n \"path\": \"\",\n \"scheduleEndMs\": \"\",\n \"scheduleStartMs\": \"\",\n \"tagManagerUrl\": \"\",\n \"type\": \"\",\n \"variableId\": \"\",\n \"workspaceId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/variables";
let payload = json!({
"accountId": "",
"containerId": "",
"disablingTriggerId": (),
"enablingTriggerId": (),
"fingerprint": "",
"formatValue": json!({
"caseConversionType": "",
"convertFalseToValue": json!({
"key": "",
"list": (),
"map": (),
"type": "",
"value": ""
}),
"convertNullToValue": json!({}),
"convertTrueToValue": json!({}),
"convertUndefinedToValue": json!({})
}),
"name": "",
"notes": "",
"parameter": (json!({})),
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/variables \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}'
echo '{
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": {
"caseConversionType": "",
"convertFalseToValue": {
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
},
"convertNullToValue": {},
"convertTrueToValue": {},
"convertUndefinedToValue": {}
},
"name": "",
"notes": "",
"parameter": [
{}
],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/variables \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "containerId": "",\n "disablingTriggerId": [],\n "enablingTriggerId": [],\n "fingerprint": "",\n "formatValue": {\n "caseConversionType": "",\n "convertFalseToValue": {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n },\n "convertNullToValue": {},\n "convertTrueToValue": {},\n "convertUndefinedToValue": {}\n },\n "name": "",\n "notes": "",\n "parameter": [\n {}\n ],\n "parentFolderId": "",\n "path": "",\n "scheduleEndMs": "",\n "scheduleStartMs": "",\n "tagManagerUrl": "",\n "type": "",\n "variableId": "",\n "workspaceId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/variables
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"containerId": "",
"disablingTriggerId": [],
"enablingTriggerId": [],
"fingerprint": "",
"formatValue": [
"caseConversionType": "",
"convertFalseToValue": [
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
],
"convertNullToValue": [],
"convertTrueToValue": [],
"convertUndefinedToValue": []
],
"name": "",
"notes": "",
"parameter": [[]],
"parentFolderId": "",
"path": "",
"scheduleEndMs": "",
"scheduleStartMs": "",
"tagManagerUrl": "",
"type": "",
"variableId": "",
"workspaceId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/variables")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.variables.list
{{baseUrl}}/tagmanager/v2/:parent/variables
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/variables");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/variables")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/variables"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/variables"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/variables");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/variables"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/variables HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/variables")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/variables"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/variables")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/variables")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/variables');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/variables'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/variables';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/variables',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/variables")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/variables',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/variables'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/variables');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/variables'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/variables';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/variables"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/variables" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/variables",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/variables');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/variables');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/variables');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/variables' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/variables' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/variables")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/variables"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/variables"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/variables")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/variables') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/variables";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/variables
http GET {{baseUrl}}/tagmanager/v2/:parent/variables
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/variables
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/variables")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.zones.create
{{baseUrl}}/tagmanager/v2/:parent/zones
QUERY PARAMS
parent
BODY json
{
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": false,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/zones");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/zones" {:content-type :json
:form-params {:accountId ""
:boundary {:condition [{:parameter [{:key ""
:list []
:map []
:type ""
:value ""}]
:type ""}]
:customEvaluationTriggerId []}
:childContainer [{:nickname ""
:publicId ""}]
:containerId ""
:fingerprint ""
:name ""
:notes ""
:path ""
:tagManagerUrl ""
:typeRestriction {:enable false
:whitelistedTypeId []}
:workspaceId ""
:zoneId ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/zones"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/zones"),
Content = new StringContent("{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/zones");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/zones"
payload := strings.NewReader("{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/zones HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 619
{
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": false,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/zones")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/zones"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/zones")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/zones")
.header("content-type", "application/json")
.body("{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountId: '',
boundary: {
condition: [
{
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
type: ''
}
],
customEvaluationTriggerId: []
},
childContainer: [
{
nickname: '',
publicId: ''
}
],
containerId: '',
fingerprint: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
typeRestriction: {
enable: false,
whitelistedTypeId: []
},
workspaceId: '',
zoneId: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/zones');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/zones',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
boundary: {
condition: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
customEvaluationTriggerId: []
},
childContainer: [{nickname: '', publicId: ''}],
containerId: '',
fingerprint: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
typeRestriction: {enable: false, whitelistedTypeId: []},
workspaceId: '',
zoneId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/zones';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","boundary":{"condition":[{"parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"type":""}],"customEvaluationTriggerId":[]},"childContainer":[{"nickname":"","publicId":""}],"containerId":"","fingerprint":"","name":"","notes":"","path":"","tagManagerUrl":"","typeRestriction":{"enable":false,"whitelistedTypeId":[]},"workspaceId":"","zoneId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/zones',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountId": "",\n "boundary": {\n "condition": [\n {\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "type": ""\n }\n ],\n "customEvaluationTriggerId": []\n },\n "childContainer": [\n {\n "nickname": "",\n "publicId": ""\n }\n ],\n "containerId": "",\n "fingerprint": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "typeRestriction": {\n "enable": false,\n "whitelistedTypeId": []\n },\n "workspaceId": "",\n "zoneId": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/zones")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/zones',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountId: '',
boundary: {
condition: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
customEvaluationTriggerId: []
},
childContainer: [{nickname: '', publicId: ''}],
containerId: '',
fingerprint: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
typeRestriction: {enable: false, whitelistedTypeId: []},
workspaceId: '',
zoneId: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/zones',
headers: {'content-type': 'application/json'},
body: {
accountId: '',
boundary: {
condition: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
customEvaluationTriggerId: []
},
childContainer: [{nickname: '', publicId: ''}],
containerId: '',
fingerprint: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
typeRestriction: {enable: false, whitelistedTypeId: []},
workspaceId: '',
zoneId: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/zones');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountId: '',
boundary: {
condition: [
{
parameter: [
{
key: '',
list: [],
map: [],
type: '',
value: ''
}
],
type: ''
}
],
customEvaluationTriggerId: []
},
childContainer: [
{
nickname: '',
publicId: ''
}
],
containerId: '',
fingerprint: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
typeRestriction: {
enable: false,
whitelistedTypeId: []
},
workspaceId: '',
zoneId: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/zones',
headers: {'content-type': 'application/json'},
data: {
accountId: '',
boundary: {
condition: [{parameter: [{key: '', list: [], map: [], type: '', value: ''}], type: ''}],
customEvaluationTriggerId: []
},
childContainer: [{nickname: '', publicId: ''}],
containerId: '',
fingerprint: '',
name: '',
notes: '',
path: '',
tagManagerUrl: '',
typeRestriction: {enable: false, whitelistedTypeId: []},
workspaceId: '',
zoneId: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/zones';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountId":"","boundary":{"condition":[{"parameter":[{"key":"","list":[],"map":[],"type":"","value":""}],"type":""}],"customEvaluationTriggerId":[]},"childContainer":[{"nickname":"","publicId":""}],"containerId":"","fingerprint":"","name":"","notes":"","path":"","tagManagerUrl":"","typeRestriction":{"enable":false,"whitelistedTypeId":[]},"workspaceId":"","zoneId":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
@"boundary": @{ @"condition": @[ @{ @"parameter": @[ @{ @"key": @"", @"list": @[ ], @"map": @[ ], @"type": @"", @"value": @"" } ], @"type": @"" } ], @"customEvaluationTriggerId": @[ ] },
@"childContainer": @[ @{ @"nickname": @"", @"publicId": @"" } ],
@"containerId": @"",
@"fingerprint": @"",
@"name": @"",
@"notes": @"",
@"path": @"",
@"tagManagerUrl": @"",
@"typeRestriction": @{ @"enable": @NO, @"whitelistedTypeId": @[ ] },
@"workspaceId": @"",
@"zoneId": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/zones"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/zones" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/zones",
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([
'accountId' => '',
'boundary' => [
'condition' => [
[
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'type' => ''
]
],
'customEvaluationTriggerId' => [
]
],
'childContainer' => [
[
'nickname' => '',
'publicId' => ''
]
],
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'typeRestriction' => [
'enable' => null,
'whitelistedTypeId' => [
]
],
'workspaceId' => '',
'zoneId' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/zones', [
'body' => '{
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": false,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/zones');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountId' => '',
'boundary' => [
'condition' => [
[
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'type' => ''
]
],
'customEvaluationTriggerId' => [
]
],
'childContainer' => [
[
'nickname' => '',
'publicId' => ''
]
],
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'typeRestriction' => [
'enable' => null,
'whitelistedTypeId' => [
]
],
'workspaceId' => '',
'zoneId' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountId' => '',
'boundary' => [
'condition' => [
[
'parameter' => [
[
'key' => '',
'list' => [
],
'map' => [
],
'type' => '',
'value' => ''
]
],
'type' => ''
]
],
'customEvaluationTriggerId' => [
]
],
'childContainer' => [
[
'nickname' => '',
'publicId' => ''
]
],
'containerId' => '',
'fingerprint' => '',
'name' => '',
'notes' => '',
'path' => '',
'tagManagerUrl' => '',
'typeRestriction' => [
'enable' => null,
'whitelistedTypeId' => [
]
],
'workspaceId' => '',
'zoneId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/zones');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/zones' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": false,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/zones' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": false,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/zones", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/zones"
payload = {
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": False,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/zones"
payload <- "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/zones")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/zones') do |req|
req.body = "{\n \"accountId\": \"\",\n \"boundary\": {\n \"condition\": [\n {\n \"parameter\": [\n {\n \"key\": \"\",\n \"list\": [],\n \"map\": [],\n \"type\": \"\",\n \"value\": \"\"\n }\n ],\n \"type\": \"\"\n }\n ],\n \"customEvaluationTriggerId\": []\n },\n \"childContainer\": [\n {\n \"nickname\": \"\",\n \"publicId\": \"\"\n }\n ],\n \"containerId\": \"\",\n \"fingerprint\": \"\",\n \"name\": \"\",\n \"notes\": \"\",\n \"path\": \"\",\n \"tagManagerUrl\": \"\",\n \"typeRestriction\": {\n \"enable\": false,\n \"whitelistedTypeId\": []\n },\n \"workspaceId\": \"\",\n \"zoneId\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/zones";
let payload = json!({
"accountId": "",
"boundary": json!({
"condition": (
json!({
"parameter": (
json!({
"key": "",
"list": (),
"map": (),
"type": "",
"value": ""
})
),
"type": ""
})
),
"customEvaluationTriggerId": ()
}),
"childContainer": (
json!({
"nickname": "",
"publicId": ""
})
),
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": json!({
"enable": false,
"whitelistedTypeId": ()
}),
"workspaceId": "",
"zoneId": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/zones \
--header 'content-type: application/json' \
--data '{
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": false,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}'
echo '{
"accountId": "",
"boundary": {
"condition": [
{
"parameter": [
{
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
}
],
"type": ""
}
],
"customEvaluationTriggerId": []
},
"childContainer": [
{
"nickname": "",
"publicId": ""
}
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": {
"enable": false,
"whitelistedTypeId": []
},
"workspaceId": "",
"zoneId": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/zones \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountId": "",\n "boundary": {\n "condition": [\n {\n "parameter": [\n {\n "key": "",\n "list": [],\n "map": [],\n "type": "",\n "value": ""\n }\n ],\n "type": ""\n }\n ],\n "customEvaluationTriggerId": []\n },\n "childContainer": [\n {\n "nickname": "",\n "publicId": ""\n }\n ],\n "containerId": "",\n "fingerprint": "",\n "name": "",\n "notes": "",\n "path": "",\n "tagManagerUrl": "",\n "typeRestriction": {\n "enable": false,\n "whitelistedTypeId": []\n },\n "workspaceId": "",\n "zoneId": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/zones
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountId": "",
"boundary": [
"condition": [
[
"parameter": [
[
"key": "",
"list": [],
"map": [],
"type": "",
"value": ""
]
],
"type": ""
]
],
"customEvaluationTriggerId": []
],
"childContainer": [
[
"nickname": "",
"publicId": ""
]
],
"containerId": "",
"fingerprint": "",
"name": "",
"notes": "",
"path": "",
"tagManagerUrl": "",
"typeRestriction": [
"enable": false,
"whitelistedTypeId": []
],
"workspaceId": "",
"zoneId": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/zones")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.containers.workspaces.zones.list
{{baseUrl}}/tagmanager/v2/:parent/zones
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/zones");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/zones")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/zones"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/zones"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/zones");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/zones"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/zones HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/zones")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/zones"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/zones")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/zones")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/zones');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:parent/zones'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/zones';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/zones',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/zones")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/zones',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:parent/zones'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/zones');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:parent/zones'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/zones';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/zones"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/zones" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/zones",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/zones');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/zones');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/zones');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/zones' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/zones' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/zones")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/zones"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/zones"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/zones")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/zones') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/zones";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/zones
http GET {{baseUrl}}/tagmanager/v2/:parent/zones
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/zones
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/zones")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.containers.workspaces.zones.revert
{{baseUrl}}/tagmanager/v2/:path:revert
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path:revert");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:path:revert")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path:revert"
response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path:revert"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path:revert");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path:revert"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:path:revert HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:path:revert")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path:revert"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:revert")
.post(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:path:revert")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:path:revert');
xhr.send(data);
import axios from 'axios';
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:revert'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path:revert';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path:revert',
method: 'POST',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path:revert")
.post(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path:revert',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:revert'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:path:revert');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'POST', url: '{{baseUrl}}/tagmanager/v2/:path:revert'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path:revert';
const options = {method: 'POST'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path:revert"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path:revert" in
Client.call `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path:revert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:path:revert');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path:revert');
$request->setMethod(HTTP_METH_POST);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path:revert');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path:revert' -Method POST
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path:revert' -Method POST
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("POST", "/baseUrl/tagmanager/v2/:path:revert")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path:revert"
response = requests.post(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path:revert"
response <- VERB("POST", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path:revert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/tagmanager/v2/:path:revert') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path:revert";
let client = reqwest::Client::new();
let response = client.post(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:path:revert
http POST {{baseUrl}}/tagmanager/v2/:path:revert
wget --quiet \
--method POST \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path:revert
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path:revert")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.list
{{baseUrl}}/tagmanager/v2/accounts
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/accounts");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/accounts")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/accounts"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/accounts"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/accounts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/accounts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/accounts HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/accounts")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/accounts"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/accounts")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/accounts")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/accounts');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/accounts'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/accounts';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/accounts',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/accounts")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/accounts',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/accounts'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/accounts');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/accounts'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/accounts';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/accounts"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/accounts" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/accounts');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/accounts');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/accounts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/accounts' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/accounts' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/accounts")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/accounts"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/accounts"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/accounts') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/accounts";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/accounts
http GET {{baseUrl}}/tagmanager/v2/accounts
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/accounts
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/accounts")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
tagmanager.accounts.user_permissions.create
{{baseUrl}}/tagmanager/v2/:parent/user_permissions
QUERY PARAMS
parent
BODY json
{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/user_permissions");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/tagmanager/v2/:parent/user_permissions" {:content-type :json
:form-params {:accountAccess {:permission ""}
:accountId ""
:containerAccess [{:containerId ""
:permission ""}]
:emailAddress ""
:path ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/user_permissions"),
Content = new StringContent("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/user_permissions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
payload := strings.NewReader("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/tagmanager/v2/:parent/user_permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192
{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/user_permissions"))
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.post(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.header("content-type", "application/json")
.body("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountAccess: {
permission: ''
},
accountId: '',
containerAccess: [
{
containerId: '',
permission: ''
}
],
emailAddress: '',
path: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions',
headers: {'content-type': 'application/json'},
data: {
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/user_permissions';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountAccess":{"permission":""},"accountId":"","containerAccess":[{"containerId":"","permission":""}],"emailAddress":"","path":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions',
method: 'POST',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountAccess": {\n "permission": ""\n },\n "accountId": "",\n "containerAccess": [\n {\n "containerId": "",\n "permission": ""\n }\n ],\n "emailAddress": "",\n "path": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.post(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/user_permissions',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
}));
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions',
headers: {'content-type': 'application/json'},
body: {
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountAccess: {
permission: ''
},
accountId: '',
containerAccess: [
{
containerId: '',
permission: ''
}
],
emailAddress: '',
path: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions',
headers: {'content-type': 'application/json'},
data: {
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/user_permissions';
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"accountAccess":{"permission":""},"accountId":"","containerAccess":[{"containerId":"","permission":""}],"emailAddress":"","path":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountAccess": @{ @"permission": @"" },
@"accountId": @"",
@"containerAccess": @[ @{ @"containerId": @"", @"permission": @"" } ],
@"emailAddress": @"",
@"path": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/user_permissions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/user_permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/user_permissions",
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([
'accountAccess' => [
'permission' => ''
],
'accountId' => '',
'containerAccess' => [
[
'containerId' => '',
'permission' => ''
]
],
'emailAddress' => '',
'path' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/tagmanager/v2/:parent/user_permissions', [
'body' => '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountAccess' => [
'permission' => ''
],
'accountId' => '',
'containerAccess' => [
[
'containerId' => '',
'permission' => ''
]
],
'emailAddress' => '',
'path' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountAccess' => [
'permission' => ''
],
'accountId' => '',
'containerAccess' => [
[
'containerId' => '',
'permission' => ''
]
],
'emailAddress' => '',
'path' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/user_permissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/user_permissions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/baseUrl/tagmanager/v2/:parent/user_permissions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
payload = {
"accountAccess": { "permission": "" },
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}
headers = {"content-type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
payload <- "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.post('/baseUrl/tagmanager/v2/:parent/user_permissions') do |req|
req.body = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
end
puts response.status
puts response.body
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/user_permissions";
let payload = json!({
"accountAccess": json!({"permission": ""}),
"accountId": "",
"containerAccess": (
json!({
"containerId": "",
"permission": ""
})
),
"emailAddress": "",
"path": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/tagmanager/v2/:parent/user_permissions \
--header 'content-type: application/json' \
--data '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}'
echo '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}' | \
http POST {{baseUrl}}/tagmanager/v2/:parent/user_permissions \
content-type:application/json
wget --quiet \
--method POST \
--header 'content-type: application/json' \
--body-data '{\n "accountAccess": {\n "permission": ""\n },\n "accountId": "",\n "containerAccess": [\n {\n "containerId": "",\n "permission": ""\n }\n ],\n "emailAddress": "",\n "path": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/user_permissions
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountAccess": ["permission": ""],
"accountId": "",
"containerAccess": [
[
"containerId": "",
"permission": ""
]
],
"emailAddress": "",
"path": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/user_permissions")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
tagmanager.accounts.user_permissions.delete
{{baseUrl}}/tagmanager/v2/:path
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/tagmanager/v2/:path")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path"
response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/tagmanager/v2/:path HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/tagmanager/v2/:path")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path")
.delete(null)
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/tagmanager/v2/:path")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/tagmanager/v2/:path');
xhr.send(data);
import axios from 'axios';
const options = {method: 'DELETE', url: '{{baseUrl}}/tagmanager/v2/:path'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path';
const options = {method: 'DELETE'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path',
method: 'DELETE',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path")
.delete(null)
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'DELETE', url: '{{baseUrl}}/tagmanager/v2/:path'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/tagmanager/v2/:path');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'DELETE', url: '{{baseUrl}}/tagmanager/v2/:path'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path';
const options = {method: 'DELETE'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path" in
Client.call `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/tagmanager/v2/:path');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path');
$request->setMethod(HTTP_METH_DELETE);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path' -Method DELETE
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path' -Method DELETE
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("DELETE", "/baseUrl/tagmanager/v2/:path")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path"
response = requests.delete(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path"
response <- VERB("DELETE", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/tagmanager/v2/:path') do |req|
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path";
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/tagmanager/v2/:path
http DELETE {{baseUrl}}/tagmanager/v2/:path
wget --quiet \
--method DELETE \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.user_permissions.get
{{baseUrl}}/tagmanager/v2/:path
QUERY PARAMS
path
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:path")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:path HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:path")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:path")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:path');
xhr.send(data);
import axios from 'axios';
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path'};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:path');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {method: 'GET', url: '{{baseUrl}}/tagmanager/v2/:path'};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:path');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:path');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:path")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:path') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:path
http GET {{baseUrl}}/tagmanager/v2/:path
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
tagmanager.accounts.user_permissions.list
{{baseUrl}}/tagmanager/v2/:parent/user_permissions
QUERY PARAMS
parent
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:parent/user_permissions");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:parent/user_permissions"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:parent/user_permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/tagmanager/v2/:parent/user_permissions HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:parent/user_permissions"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:parent/user_permissions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:parent/user_permissions',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/tagmanager/v2/:parent/user_permissions'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:parent/user_permissions';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:parent/user_permissions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:parent/user_permissions" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:parent/user_permissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/tagmanager/v2/:parent/user_permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:parent/user_permissions' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:parent/user_permissions' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/tagmanager/v2/:parent/user_permissions")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:parent/user_permissions"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:parent/user_permissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/tagmanager/v2/:parent/user_permissions') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:parent/user_permissions";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/tagmanager/v2/:parent/user_permissions
http GET {{baseUrl}}/tagmanager/v2/:parent/user_permissions
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/tagmanager/v2/:parent/user_permissions
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:parent/user_permissions")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
tagmanager.accounts.user_permissions.update
{{baseUrl}}/tagmanager/v2/:path
QUERY PARAMS
path
BODY json
{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tagmanager/v2/:path");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/tagmanager/v2/:path" {:content-type :json
:form-params {:accountAccess {:permission ""}
:accountId ""
:containerAccess [{:containerId ""
:permission ""}]
:emailAddress ""
:path ""}})
require "http/client"
url = "{{baseUrl}}/tagmanager/v2/:path"
headers = HTTP::Headers{
"content-type" => "application/json"
}
reqBody = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/tagmanager/v2/:path"),
Content = new StringContent("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tagmanager/v2/:path");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/tagmanager/v2/:path"
payload := strings.NewReader("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/tagmanager/v2/:path HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192
{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/tagmanager/v2/:path")
.setHeader("content-type", "application/json")
.setBody("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/tagmanager/v2/:path"))
.header("content-type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}");
Request request = new Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path")
.put(body)
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/tagmanager/v2/:path")
.header("content-type", "application/json")
.body("{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
.asString();
const data = JSON.stringify({
accountAccess: {
permission: ''
},
accountId: '',
containerAccess: [
{
containerId: '',
permission: ''
}
],
emailAddress: '',
path: ''
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/tagmanager/v2/:path');
xhr.setRequestHeader('content-type', 'application/json');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/tagmanager/v2/:path',
headers: {'content-type': 'application/json'},
data: {
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/tagmanager/v2/:path';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"accountAccess":{"permission":""},"accountId":"","containerAccess":[{"containerId":"","permission":""}],"emailAddress":"","path":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/tagmanager/v2/:path',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
processData: false,
data: '{\n "accountAccess": {\n "permission": ""\n },\n "accountId": "",\n "containerAccess": [\n {\n "containerId": "",\n "permission": ""\n }\n ],\n "emailAddress": "",\n "path": ""\n}'
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}")
val request = Request.Builder()
.url("{{baseUrl}}/tagmanager/v2/:path")
.put(body)
.addHeader("content-type", "application/json")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/tagmanager/v2/:path',
headers: {
'content-type': 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
}));
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/tagmanager/v2/:path',
headers: {'content-type': 'application/json'},
body: {
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/tagmanager/v2/:path');
req.headers({
'content-type': 'application/json'
});
req.type('json');
req.send({
accountAccess: {
permission: ''
},
accountId: '',
containerAccess: [
{
containerId: '',
permission: ''
}
],
emailAddress: '',
path: ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/tagmanager/v2/:path',
headers: {'content-type': 'application/json'},
data: {
accountAccess: {permission: ''},
accountId: '',
containerAccess: [{containerId: '', permission: ''}],
emailAddress: '',
path: ''
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/tagmanager/v2/:path';
const options = {
method: 'PUT',
headers: {'content-type': 'application/json'},
body: '{"accountAccess":{"permission":""},"accountId":"","containerAccess":[{"containerId":"","permission":""}],"emailAddress":"","path":""}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountAccess": @{ @"permission": @"" },
@"accountId": @"",
@"containerAccess": @[ @{ @"containerId": @"", @"permission": @"" } ],
@"emailAddress": @"",
@"path": @"" };
NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tagmanager/v2/:path"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/tagmanager/v2/:path" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}" in
Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/tagmanager/v2/:path",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'accountAccess' => [
'permission' => ''
],
'accountId' => '',
'containerAccess' => [
[
'containerId' => '',
'permission' => ''
]
],
'emailAddress' => '',
'path' => ''
]),
CURLOPT_HTTPHEADER => [
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/tagmanager/v2/:path', [
'body' => '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}',
'headers' => [
'content-type' => 'application/json',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/tagmanager/v2/:path');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'content-type' => 'application/json'
]);
$request->setContentType('application/json');
$request->setBody(json_encode([
'accountAccess' => [
'permission' => ''
],
'accountId' => '',
'containerAccess' => [
[
'containerId' => '',
'permission' => ''
]
],
'emailAddress' => '',
'path' => ''
]));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
append(json_encode([
'accountAccess' => [
'permission' => ''
],
'accountId' => '',
'containerAccess' => [
[
'containerId' => '',
'permission' => ''
]
],
'emailAddress' => '',
'path' => ''
]));
$request->setRequestUrl('{{baseUrl}}/tagmanager/v2/:path');
$request->setRequestMethod('PUT');
$request->setBody($body);
$request->setHeaders([
'content-type' => 'application/json'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tagmanager/v2/:path' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tagmanager/v2/:path' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}'
import http.client
conn = http.client.HTTPSConnection("example.com")
payload = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
headers = { 'content-type': "application/json" }
conn.request("PUT", "/baseUrl/tagmanager/v2/:path", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/tagmanager/v2/:path"
payload = {
"accountAccess": { "permission": "" },
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}
headers = {"content-type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/tagmanager/v2/:path"
payload <- "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
encode <- "json"
response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/tagmanager/v2/:path")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
headers: {'Content-Type' => 'application/json'}
)
response = conn.put('/baseUrl/tagmanager/v2/:path') do |req|
req.body = "{\n \"accountAccess\": {\n \"permission\": \"\"\n },\n \"accountId\": \"\",\n \"containerAccess\": [\n {\n \"containerId\": \"\",\n \"permission\": \"\"\n }\n ],\n \"emailAddress\": \"\",\n \"path\": \"\"\n}"
end
puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/tagmanager/v2/:path";
let payload = json!({
"accountAccess": json!({"permission": ""}),
"accountId": "",
"containerAccess": (
json!({
"containerId": "",
"permission": ""
})
),
"emailAddress": "",
"path": ""
});
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("content-type", "application/json".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.json(&payload)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/tagmanager/v2/:path \
--header 'content-type: application/json' \
--data '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}'
echo '{
"accountAccess": {
"permission": ""
},
"accountId": "",
"containerAccess": [
{
"containerId": "",
"permission": ""
}
],
"emailAddress": "",
"path": ""
}' | \
http PUT {{baseUrl}}/tagmanager/v2/:path \
content-type:application/json
wget --quiet \
--method PUT \
--header 'content-type: application/json' \
--body-data '{\n "accountAccess": {\n "permission": ""\n },\n "accountId": "",\n "containerAccess": [\n {\n "containerId": "",\n "permission": ""\n }\n ],\n "emailAddress": "",\n "path": ""\n}' \
--output-document \
- {{baseUrl}}/tagmanager/v2/:path
import Foundation
let headers = ["content-type": "application/json"]
let parameters = [
"accountAccess": ["permission": ""],
"accountId": "",
"containerAccess": [
[
"containerId": "",
"permission": ""
]
],
"emailAddress": "",
"path": ""
] as [String : Any]
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tagmanager/v2/:path")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()