Bu dokümantasyon sayfası, Dielines API'i sistemlerine entegre etmek isteyen yazılım geliştiriciler için tasarlanmıştır. Herhangi bir sorunuz varsa lütfen iletişime geçin.
Die Cut Templates, HTTPS üzerinden erişilebilen barındırılan bir API sağlar.
Dielines API, 3D mockup'ların yanı sıra PDF, DXF ve SVG formatlarında özel dieline'lar oluşturmanıza olanak tanır.
To fetch the dieline template (becf-11a0a) via the API, please make a
GET request to
https://api.diecuttemplates.com/dieline-templates/in/becf-11a0a
curl -i -X GET \
https://api.diecuttemplates.com/dieline-templates/in/becf-11a0a \
-H 'Authorization: Bearer <YOUR_DIELINES_API_KEY_HERE>' \
-H 'Dielines-Api-Version: 1.0'
require 'uri'
require 'net/http'
require 'openssl'
url = URI('https://api.diecuttemplates.com/dieline-templates/in/becf-11a0a')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request['Dielines-Api-Version'] = '1.0'
request['Authorization'] = 'Bearer <YOUR_DIELINES_API_KEY_HERE>'
response = http.request(request)
puts response.read_body
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <YOUR_DIELINES_API_KEY_HERE>",
"Dielines-Api-Version: 1.0"
],
CURLOPT_URL => "https://api.diecuttemplates.com/dieline-templates/in/becf-11a0a",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$error = curl_error($curl);
curl_close($curl);
if ($error) {
echo "cURL Error #:" . $error;
} else {
echo $response;
}
application/json {
"dieline_template": {
"type": "dieline_template",
"id": "becf-11a0a",
"group": {
"type": "dieline_template_group",
"id": "cartons_tray_boxes",
"name": "Tray Boxes",
"category": "Cartons"
},
"tags": [],
"variables": [
{
"type": "dieline_template_variable",
"name": "length",
"description": "length",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://www.diecuttemplates.com/i2/bnY7kk5Y0R/GqYwzxreKm.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "width",
"description": "width",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://www.diecuttemplates.com/i2/bnY7kk5Y0R/wDYnezPeKB.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "height",
"description": "height",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://www.diecuttemplates.com/i2/bnY7kk5Y0R/bJyW5ArgYV.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "top_lid_height",
"description": "top lid height",
"data_type": "length",
"required": true,
"image": {
"type": "svg",
"url": "https://www.diecuttemplates.com/i2/bnY7kk5Y0R/AmyrnPJEy1.svg"
},
"childen": []
},
{
"type": "dieline_template_variable",
"name": "direction",
"description": "direction",
"data_type": "boolean",
"required": false,
"default_value": {
"value": false
},
"allowed_values": [
true,
false,
0,
1
],
"childen": []
},
{
"type": "dieline_template_variable",
"name": "cross",
"description": "cross",
"data_type": "boolean",
"required": false,
"default_value": {
"value": false
},
"allowed_values": [
true,
false,
0,
1
],
"childen": []
},
{
"type": "dieline_template_variable",
"name": "dimension_texts",
"description": "",
"data_type": "boolean",
"required": false,
"allowed_values": [
true,
false
],
"default_value": {
"value": true
}
}
],
"links": [
{
"rel": "self",
"href": "/dieline_templates/in/becf-11a0a",
"method": "GET"
},
{
"rel": "web",
"href": "https://www.diecuttemplates.com/dielines/51517/tray-boxes-becf-11a0a",
"method": "GET"
}
],
"images": [
{
"type": "svg",
"url": "https://d2atdwxjx7uc4i.cloudfront.net/d_svg_api/s_5151720251002-2-amtodj.svg"
}
]
}
}