프리뷰 썸네일 URL 목록
curl --request GET \
--url https://api.edicus.io/v2/projects/{project_id}/preview_urls \
--header 'edicus-api-key: <api-key>'import requests
url = "https://api.edicus.io/v2/projects/{project_id}/preview_urls"
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://api.edicus.io/v2/projects/{project_id}/preview_urls', 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://api.edicus.io/v2/projects/{project_id}/preview_urls",
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://api.edicus.io/v2/projects/{project_id}/preview_urls"
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://api.edicus.io/v2/projects/{project_id}/preview_urls")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects/{project_id}/preview_urls")
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{
"urls": [
"https://.../1.jpg",
"https://.../2.jpg"
]
}
프로젝트
프리뷰 썸네일 URL 목록
프로젝트의 프리뷰용 썸네일 이미지 URL 목록을 반환합니다. 각 항목은 jpg 파일 링크입니다.
URL 개수는 상품마다 다릅니다. 상품별 썸네일 지원 여부는 Edicus Manager의 Product → 개별상품 → etc → thumbnail에서 all-page, front-page, none 중 선택한 값을 따릅니다.
2018년 1월 2일 이후 새로 만들어졌거나 저장된 상품만 지원합니다.
프리뷰가 없거나 프로젝트가 없으면 404가 아니라 200이고 urls가 빈 배열입니다. edicus-uid가 필요 없습니다.
GET
/
v2
/
projects
/
{project_id}
/
preview_urls
프리뷰 썸네일 URL 목록
curl --request GET \
--url https://api.edicus.io/v2/projects/{project_id}/preview_urls \
--header 'edicus-api-key: <api-key>'import requests
url = "https://api.edicus.io/v2/projects/{project_id}/preview_urls"
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://api.edicus.io/v2/projects/{project_id}/preview_urls', 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://api.edicus.io/v2/projects/{project_id}/preview_urls",
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://api.edicus.io/v2/projects/{project_id}/preview_urls"
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://api.edicus.io/v2/projects/{project_id}/preview_urls")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects/{project_id}/preview_urls")
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{
"urls": [
"https://.../1.jpg",
"https://.../2.jpg"
]
}