프로젝트 목록
curl --request GET \
--url https://api.edicus.io/v2/projects \
--header 'edicus-api-key: <api-key>' \
--header 'edicus-uid: <edicus-uid>'import requests
url = "https://api.edicus.io/v2/projects"
headers = {
"edicus-uid": "<edicus-uid>",
"edicus-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'edicus-uid': '<edicus-uid>', 'edicus-api-key': '<api-key>'}
};
fetch('https://api.edicus.io/v2/projects', 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",
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>",
"edicus-uid: <edicus-uid>"
],
]);
$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"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("edicus-uid", "<edicus-uid>")
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")
.header("edicus-uid", "<edicus-uid>")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["edicus-uid"] = '<edicus-uid>'
request["edicus-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"projects": [
{
"project_id": "-LiBngTbCFYNjcOVcxcY",
"ctime": "2019-06-25T04:04:51.011Z",
"mtime": "2019-06-25T04:04:51.011Z",
"ps_code": "50x90@NC",
"status": "editing",
"template_uri": "gcs://template/partners/sandbox/...",
"title": "sample test"
}
]
}프로젝트
프로젝트 목록
edicus-uid 사용자가 만든 모든 프로젝트의 목록을 반환합니다.
응답은 { projects: [...] }로 감싸여 있습니다. 프로젝트가 없으면 빈 배열입니다.
GET
/
v2
/
projects
프로젝트 목록
curl --request GET \
--url https://api.edicus.io/v2/projects \
--header 'edicus-api-key: <api-key>' \
--header 'edicus-uid: <edicus-uid>'import requests
url = "https://api.edicus.io/v2/projects"
headers = {
"edicus-uid": "<edicus-uid>",
"edicus-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'edicus-uid': '<edicus-uid>', 'edicus-api-key': '<api-key>'}
};
fetch('https://api.edicus.io/v2/projects', 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",
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>",
"edicus-uid: <edicus-uid>"
],
]);
$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"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("edicus-uid", "<edicus-uid>")
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")
.header("edicus-uid", "<edicus-uid>")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["edicus-uid"] = '<edicus-uid>'
request["edicus-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"projects": [
{
"project_id": "-LiBngTbCFYNjcOVcxcY",
"ctime": "2019-06-25T04:04:51.011Z",
"mtime": "2019-06-25T04:04:51.011Z",
"ps_code": "50x90@NC",
"status": "editing",
"template_uri": "gcs://template/partners/sandbox/...",
"title": "sample test"
}
]
}Authorizations
모션원에서 발급받는 API 키입니다. 외부에 유출되지 않도록 각별히 주의합니다.
Headers
고객사가 사용자에게 부여한 고유 id입니다. 1~70자이고 a-z, A-Z, 0-9, _, !, @, -, +, =만 쓸 수 있습니다. 없거나 규칙을 어기면 400 invalid_request입니다.
Required string length:
1 - 70Pattern:
^[a-zA-Z0-9_!@\-+=]+$Response
프로젝트 목록입니다.
프로젝트 목록. 없으면 빈 배열입니다
Show child attributes
Show child attributes