상품 목록
curl --request GET \
--url https://resource-dot-edicusbase.appspot.com/resapi/product/list \
--header 'edicus-api-key: <api-key>'import requests
url = "https://resource-dot-edicusbase.appspot.com/resapi/product/list"
headers = {"edicus-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'edicus-api-key': '<api-key>'}};
fetch('https://resource-dot-edicusbase.appspot.com/resapi/product/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://resource-dot-edicusbase.appspot.com/resapi/product/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"edicus-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://resource-dot-edicusbase.appspot.com/resapi/product/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("edicus-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://resource-dot-edicusbase.appspot.com/resapi/product/list")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://resource-dot-edicusbase.appspot.com/resapi/product/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["edicus-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"prodCates": [
{
"cateCode": "<string>",
"dpName": "<string>"
}
],
"products": [
{
"prodCode": "<string>",
"dpName": "<string>",
"cateCode": "<string>",
"editor": "template",
"template_option": {
"cover": true,
"splitPage": true,
"doubleSide": true,
"multiPage": true,
"minContentPage": 123,
"maxContentPage": 123,
"pageMenu": true,
"photoTab": true,
"templateTab": true,
"backgroundTab": true,
"layoutTab": true,
"stickerTab": true,
"maskTab": true,
"textTab": true,
"cutoutTab": true,
"autoImport": true,
"effectCellUI": true,
"borderCellUI": true,
"staticCellUI": true,
"optionChange": true,
"initialZoom": "<string>"
},
"print_option": {
"ui_paperType": true,
"ui_rendition": true,
"ui_showBorder": true,
"ui_showDate": true,
"ui_autoAdjust": true,
"def_paperType": "<string>",
"def_rendition": "<string>",
"def_showBorder": true,
"def_showDate": true,
"def_autoAdjust": true,
"fixedOrientation": true
},
"userData": "<string>",
"sizes": [
{
"sizeCode": "<string>",
"dpName": "<string>",
"refDPI": 123,
"lowDPI": 123,
"editorMargin_mm": {
"width": 123,
"height": 123
},
"pageInfos": [
{
"pageType": "<string>",
"width_mm": 123,
"height_mm": 123,
"cutMargin_mm": {
"width": 123,
"height": 123
}
}
],
"printInfo": {
"width_mm": 123,
"height_mm": 123,
"borderLeft_mm": 123,
"borderTop_mm": 123,
"borderRight_mm": 123,
"borderBottom_mm": 123,
"borderColor": "<string>",
"borderRound_mm": 123
}
}
]
}
]
}{
"code": "invalid-edicus-api-key"
}{}상품
상품 목록
Edicus Manager에 등록된 모든 상품과 상품 카테고리 정보를 가져온다. 상품을 카테고리별로 분류하는 것은 호출하는 쪽에서 한다.
GET
/
resapi
/
product
/
list
상품 목록
curl --request GET \
--url https://resource-dot-edicusbase.appspot.com/resapi/product/list \
--header 'edicus-api-key: <api-key>'import requests
url = "https://resource-dot-edicusbase.appspot.com/resapi/product/list"
headers = {"edicus-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'edicus-api-key': '<api-key>'}};
fetch('https://resource-dot-edicusbase.appspot.com/resapi/product/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://resource-dot-edicusbase.appspot.com/resapi/product/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"edicus-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://resource-dot-edicusbase.appspot.com/resapi/product/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("edicus-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://resource-dot-edicusbase.appspot.com/resapi/product/list")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://resource-dot-edicusbase.appspot.com/resapi/product/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["edicus-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"prodCates": [
{
"cateCode": "<string>",
"dpName": "<string>"
}
],
"products": [
{
"prodCode": "<string>",
"dpName": "<string>",
"cateCode": "<string>",
"editor": "template",
"template_option": {
"cover": true,
"splitPage": true,
"doubleSide": true,
"multiPage": true,
"minContentPage": 123,
"maxContentPage": 123,
"pageMenu": true,
"photoTab": true,
"templateTab": true,
"backgroundTab": true,
"layoutTab": true,
"stickerTab": true,
"maskTab": true,
"textTab": true,
"cutoutTab": true,
"autoImport": true,
"effectCellUI": true,
"borderCellUI": true,
"staticCellUI": true,
"optionChange": true,
"initialZoom": "<string>"
},
"print_option": {
"ui_paperType": true,
"ui_rendition": true,
"ui_showBorder": true,
"ui_showDate": true,
"ui_autoAdjust": true,
"def_paperType": "<string>",
"def_rendition": "<string>",
"def_showBorder": true,
"def_showDate": true,
"def_autoAdjust": true,
"fixedOrientation": true
},
"userData": "<string>",
"sizes": [
{
"sizeCode": "<string>",
"dpName": "<string>",
"refDPI": 123,
"lowDPI": 123,
"editorMargin_mm": {
"width": 123,
"height": 123
},
"pageInfos": [
{
"pageType": "<string>",
"width_mm": 123,
"height_mm": 123,
"cutMargin_mm": {
"width": 123,
"height": 123
}
}
],
"printInfo": {
"width_mm": 123,
"height_mm": 123,
"borderLeft_mm": 123,
"borderTop_mm": 123,
"borderRight_mm": 123,
"borderBottom_mm": 123,
"borderColor": "<string>",
"borderRound_mm": 123
}
}
]
}
]
}{
"code": "invalid-edicus-api-key"
}{}