프로젝트에 쓰인 사용자 이미지 목록
curl --request POST \
--url https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls \
--header 'Content-Type: application/json' \
--header 'edicus-api-key: <api-key>' \
--data '
{
"user_id": "uid-of-mot1-customer",
"project_id": "-KzcsQfMdZr45xBeP70-",
"size_tag": "edit",
"limit": 1
}
'import requests
url = "https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls"
payload = {
"user_id": "uid-of-mot1-customer",
"project_id": "-KzcsQfMdZr45xBeP70-",
"size_tag": "edit",
"limit": 1
}
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({
user_id: 'uid-of-mot1-customer',
project_id: '-KzcsQfMdZr45xBeP70-',
size_tag: 'edit',
limit: 1
})
};
fetch('https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_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://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_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([
'user_id' => 'uid-of-mot1-customer',
'project_id' => '-KzcsQfMdZr45xBeP70-',
'size_tag' => 'edit',
'limit' => 1
]),
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://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls"
payload := strings.NewReader("{\n \"user_id\": \"uid-of-mot1-customer\",\n \"project_id\": \"-KzcsQfMdZr45xBeP70-\",\n \"size_tag\": \"edit\",\n \"limit\": 1\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://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls")
.header("edicus-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_id\": \"uid-of-mot1-customer\",\n \"project_id\": \"-KzcsQfMdZr45xBeP70-\",\n \"size_tag\": \"edit\",\n \"limit\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_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 \"user_id\": \"uid-of-mot1-customer\",\n \"project_id\": \"-KzcsQfMdZr45xBeP70-\",\n \"size_tag\": \"edit\",\n \"limit\": 1\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 123,
"type": "<string>",
"visibility": "<string>",
"deletedTime": "<string>",
"psCodes": [
"<string>"
],
"dpUri": "<string>",
"dpWidth": 123,
"dpHeight": 123,
"resUri": "<string>",
"resWidth": 123,
"resHeight": 123,
"valueUri": "<string>",
"pageType": "<string>",
"itemCount": 123,
"userData": "<string>",
"userDataGen": "<string>",
"tags": [
"<string>"
]
}
]
}"no user_id"{
"code": "invalid-edicus-api-key"
}{}리소스
프로젝트에 쓰인 사용자 이미지 목록
프로젝트에 사용된 사용자 업로드 이미지의 목록을 얻는다.
POST
/
manapi
/
project
/
get_user_rsc_urls
프로젝트에 쓰인 사용자 이미지 목록
curl --request POST \
--url https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls \
--header 'Content-Type: application/json' \
--header 'edicus-api-key: <api-key>' \
--data '
{
"user_id": "uid-of-mot1-customer",
"project_id": "-KzcsQfMdZr45xBeP70-",
"size_tag": "edit",
"limit": 1
}
'import requests
url = "https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls"
payload = {
"user_id": "uid-of-mot1-customer",
"project_id": "-KzcsQfMdZr45xBeP70-",
"size_tag": "edit",
"limit": 1
}
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({
user_id: 'uid-of-mot1-customer',
project_id: '-KzcsQfMdZr45xBeP70-',
size_tag: 'edit',
limit: 1
})
};
fetch('https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_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://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_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([
'user_id' => 'uid-of-mot1-customer',
'project_id' => '-KzcsQfMdZr45xBeP70-',
'size_tag' => 'edit',
'limit' => 1
]),
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://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls"
payload := strings.NewReader("{\n \"user_id\": \"uid-of-mot1-customer\",\n \"project_id\": \"-KzcsQfMdZr45xBeP70-\",\n \"size_tag\": \"edit\",\n \"limit\": 1\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://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_urls")
.header("edicus-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_id\": \"uid-of-mot1-customer\",\n \"project_id\": \"-KzcsQfMdZr45xBeP70-\",\n \"size_tag\": \"edit\",\n \"limit\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://resource-dot-edicusbase.appspot.com/manapi/project/get_user_rsc_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 \"user_id\": \"uid-of-mot1-customer\",\n \"project_id\": \"-KzcsQfMdZr45xBeP70-\",\n \"size_tag\": \"edit\",\n \"limit\": 1\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 123,
"type": "<string>",
"visibility": "<string>",
"deletedTime": "<string>",
"psCodes": [
"<string>"
],
"dpUri": "<string>",
"dpWidth": 123,
"dpHeight": 123,
"resUri": "<string>",
"resWidth": 123,
"resHeight": 123,
"valueUri": "<string>",
"pageType": "<string>",
"itemCount": 123,
"userData": "<string>",
"userDataGen": "<string>",
"tags": [
"<string>"
]
}
]
}"no user_id"{
"code": "invalid-edicus-api-key"
}{}Authorizations
모션원에서 발급받는 API 키입니다. 외부에 유출되지 않도록 각별히 주의합니다.
Body
application/json
Response
성공.
Show child attributes
Show child attributes