프리뷰 썸네일 URL 목록 (여러 프로젝트)
curl --request POST \
--url https://api.edicus.io/v2/projects/preview_urls \
--header 'Content-Type: application/json' \
--header 'edicus-api-key: <api-key>' \
--data '
{
"project_ids": [
"-LiBngTbCFYNjcOVcxcY",
"-KiBngTbFEGNjcOVcxfe"
]
}
'import requests
url = "https://api.edicus.io/v2/projects/preview_urls"
payload = { "project_ids": ["-LiBngTbCFYNjcOVcxcY", "-KiBngTbFEGNjcOVcxfe"] }
headers = {
"edicus-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'edicus-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({project_ids: ['-LiBngTbCFYNjcOVcxcY', '-KiBngTbFEGNjcOVcxfe']})
};
fetch('https://api.edicus.io/v2/projects/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/preview_urls",
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([
'project_ids' => [
'-LiBngTbCFYNjcOVcxcY',
'-KiBngTbFEGNjcOVcxfe'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.edicus.io/v2/projects/preview_urls"
payload := strings.NewReader("{\n \"project_ids\": [\n \"-LiBngTbCFYNjcOVcxcY\",\n \"-KiBngTbFEGNjcOVcxfe\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("edicus-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.edicus.io/v2/projects/preview_urls")
.header("edicus-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"project_ids\": [\n \"-LiBngTbCFYNjcOVcxcY\",\n \"-KiBngTbFEGNjcOVcxfe\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects/preview_urls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["edicus-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"project_ids\": [\n \"-LiBngTbCFYNjcOVcxcY\",\n \"-KiBngTbFEGNjcOVcxfe\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"project_id": "-LiBngTbCFYNjcOVcxcY",
"urls": [
"https://.../1.jpg",
"https://.../2.jpg"
]
},
{
"project_id": "-KiBngTbFEGNjcOVcxfe",
"error": "no_preview_urls"
}
]
}프로젝트
프리뷰 썸네일 URL 목록 (여러 프로젝트)
프로젝트 여러 개의 프리뷰 URL을 한 번에 조회합니다. 한 번에 최대 25개입니다. 26개 이상이면 400 invalid_request입니다.
요청 body의 키는 project_ids입니다. 항목별 실패는 요청 전체의 실패가 아니라 결과 배열의 error 필드로 옵니다. 프리뷰 정보가 없는 프로젝트는 error가 no_preview_urls입니다.
POST
/
v2
/
projects
/
preview_urls
프리뷰 썸네일 URL 목록 (여러 프로젝트)
curl --request POST \
--url https://api.edicus.io/v2/projects/preview_urls \
--header 'Content-Type: application/json' \
--header 'edicus-api-key: <api-key>' \
--data '
{
"project_ids": [
"-LiBngTbCFYNjcOVcxcY",
"-KiBngTbFEGNjcOVcxfe"
]
}
'import requests
url = "https://api.edicus.io/v2/projects/preview_urls"
payload = { "project_ids": ["-LiBngTbCFYNjcOVcxcY", "-KiBngTbFEGNjcOVcxfe"] }
headers = {
"edicus-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'edicus-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({project_ids: ['-LiBngTbCFYNjcOVcxcY', '-KiBngTbFEGNjcOVcxfe']})
};
fetch('https://api.edicus.io/v2/projects/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/preview_urls",
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([
'project_ids' => [
'-LiBngTbCFYNjcOVcxcY',
'-KiBngTbFEGNjcOVcxfe'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.edicus.io/v2/projects/preview_urls"
payload := strings.NewReader("{\n \"project_ids\": [\n \"-LiBngTbCFYNjcOVcxcY\",\n \"-KiBngTbFEGNjcOVcxfe\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("edicus-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.edicus.io/v2/projects/preview_urls")
.header("edicus-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"project_ids\": [\n \"-LiBngTbCFYNjcOVcxcY\",\n \"-KiBngTbFEGNjcOVcxfe\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects/preview_urls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["edicus-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"project_ids\": [\n \"-LiBngTbCFYNjcOVcxcY\",\n \"-KiBngTbFEGNjcOVcxfe\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"project_id": "-LiBngTbCFYNjcOVcxcY",
"urls": [
"https://.../1.jpg",
"https://.../2.jpg"
]
},
{
"project_id": "-KiBngTbFEGNjcOVcxfe",
"error": "no_preview_urls"
}
]
}Authorizations
모션원에서 발급받는 API 키입니다. 외부에 유출되지 않도록 각별히 주의합니다.
Headers
OEM 대행용입니다. 다른 파트너를 대신해 처리할 때 그 파트너의 코드를 넣습니다. 두 파트너 사이에 OEM 관계가 등록돼 있어야 하고, 아니면 403 oem_not_allowed입니다. 일반 연동에서는 보내지 않습니다.
Minimum string length:
1Body
application/json
조회할 프로젝트 id 배열. 최대 25개입니다
Maximum array length:
25Minimum string length:
1Response
프로젝트별 결과입니다.
Show child attributes
Show child attributes