프로젝트 소유자 조회
curl --request GET \
--url https://api.edicus.io/v2/projects/{project_id}/owner \
--header 'edicus-api-key: <api-key>'import requests
url = "https://api.edicus.io/v2/projects/{project_id}/owner"
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}/owner', 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}/owner",
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}/owner"
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}/owner")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects/{project_id}/owner")
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{
"owner": "sandbox-kr46KCD8vWOnOGo8CBO7c6ctSge2"
}프로젝트
프로젝트 소유자 조회
프로젝트 소유자를 반환합니다. owner는 파트너 코드와 uid를 하이픈으로 이은 값({partner_code}-{uid})입니다.
프로젝트가 없거나 소유자가 기록되지 않았으면 404가 아니라 200이고 owner가 null입니다. edicus-uid가 필요 없습니다.
GET
/
v2
/
projects
/
{project_id}
/
owner
프로젝트 소유자 조회
curl --request GET \
--url https://api.edicus.io/v2/projects/{project_id}/owner \
--header 'edicus-api-key: <api-key>'import requests
url = "https://api.edicus.io/v2/projects/{project_id}/owner"
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}/owner', 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}/owner",
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}/owner"
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}/owner")
.header("edicus-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edicus.io/v2/projects/{project_id}/owner")
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{
"owner": "sandbox-kr46KCD8vWOnOGo8CBO7c6ctSge2"
}