Create tag
This function purpose is to create a specific tag • You can create tags and assign numbers to it without any assignment limitation • Tags creation allows filtering and reporting more conveniently, and for a large amount of maskyoo numbers, in addition to creating overall rules and functions for the tags members (i.e assigned numbers to the tag).
/api/?service=create_tag
Usage and SDK Samples
curl -H "Authorization: Bearer < TOKEN_FROM_SYSTEM >" -X get "https://[MASKYOO_URL]/api/?service=create_tag&tag_name=&format="
using System.Net;
using System.Collections.Specialized;
namespace Examples.System.Net
{
public class WebRequestPostExample
{
public static void Main ()
{
string url_query_string="https://[MASKYOO_URL]/api/?";
using (var client = new WebClient())
{
var values = new NameValueCollection();
values["service"] = "create_tag";
values["tag_name"] = "test tag";
values["format"] = "json";
client.Headers.Add("Authorization","Bearer < TOKEN_FROM_SYSTEM >");
var response = client.UploadValues(url_query_string, values);
var responseString = Encoding.Default.GetString(response);
Console.WriteLine (responseString);
}
}
}
}
<?php
$base_url="https://[MASKYOO_URL]/api/";
$data = array(
"service" => "create_tag",
"tag_name" => "test tag",
"format" => "json"
);
echo post_data($base_url, $data);
function post_data($url, $data){
$fields = '';
foreach($data as $key => $value) {
$fields .= $key . '=' . $value . '&';
}
rtrim($fields, '&');
$post = curl_init();
curl_setopt($post, CURLOPT_URL, $url);
curl_setopt($post, CURLOPT_POST, count($data));
curl_setopt($post, CURLOPT_POSTFIELDS, $fields);
curl_setopt($post, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($post, CURLOPT_HTTPHEADER, array("Authorization: Bearer < TOKEN_FROM_SYSTEM >"));
$result = curl_exec($post);
curl_close($post);
return $result;
}
?>
Parameters
Name | Description |
---|---|
tag_name* | |
format |