Todo 생성
curl --request POST \
--url https://openapi.pluuug.com/v1/todo \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"inquiry": {
"id": 123
},
"dueDate": "2023-12-25",
"action": "<string>",
"inCharge": {
"id": 123
},
"dueTime": "<string>",
"actionHistory": "<string>"
}
'import requests
url = "https://openapi.pluuug.com/v1/todo"
payload = {
"inquiry": { "id": 123 },
"dueDate": "2023-12-25",
"action": "<string>",
"inCharge": { "id": 123 },
"dueTime": "<string>",
"actionHistory": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
inquiry: {id: 123},
dueDate: '2023-12-25',
action: '<string>',
inCharge: {id: 123},
dueTime: '<string>',
actionHistory: '<string>'
})
};
fetch('https://openapi.pluuug.com/v1/todo', 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://openapi.pluuug.com/v1/todo",
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([
'inquiry' => [
'id' => 123
],
'dueDate' => '2023-12-25',
'action' => '<string>',
'inCharge' => [
'id' => 123
],
'dueTime' => '<string>',
'actionHistory' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Signature: <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://openapi.pluuug.com/v1/todo"
payload := strings.NewReader("{\n \"inquiry\": {\n \"id\": 123\n },\n \"dueDate\": \"2023-12-25\",\n \"action\": \"<string>\",\n \"inCharge\": {\n \"id\": 123\n },\n \"dueTime\": \"<string>\",\n \"actionHistory\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-Signature", "<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://openapi.pluuug.com/v1/todo")
.header("X-API-Key", "<api-key>")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"inquiry\": {\n \"id\": 123\n },\n \"dueDate\": \"2023-12-25\",\n \"action\": \"<string>\",\n \"inCharge\": {\n \"id\": 123\n },\n \"dueTime\": \"<string>\",\n \"actionHistory\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.pluuug.com/v1/todo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inquiry\": {\n \"id\": 123\n },\n \"dueDate\": \"2023-12-25\",\n \"action\": \"<string>\",\n \"inCharge\": {\n \"id\": 123\n },\n \"dueTime\": \"<string>\",\n \"actionHistory\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"inquiry": {
"id": 123,
"uniqueId": "<string>",
"name": "<string>"
},
"type": "M",
"dueDate": "2023-12-25",
"action": "<string>",
"isComplete": true,
"completedAt": "2023-11-07T05:31:56Z",
"dDay": 123,
"created": "2023-11-07T05:31:56Z",
"inCharge": {
"id": 123,
"nickname": "<string>",
"email": "<string>",
"isActive": true,
"grade": {
"id": 123,
"title": "<string>"
}
},
"dueTime": "<string>"
}{
"nonField": [
"<string>"
],
"inquiry": {
"id": [
"<string>"
]
},
"inCharge": {
"id": [
"<string>"
]
},
"type": [
"<string>"
],
"dueDate": [
"<string>"
],
"dueTime": [
"<string>"
],
"action": [
"<string>"
],
"actionHistory": [
"<string>"
]
}Todo
Todo 생성
새 Todo를 생성합니다. inquiry.id(필수)로 의뢰 연결, in_charge.id로 담당자 지정.
Todo 타입(type), 마감 시간(due_time) 등 필드는 스키마 help_text 참조.
POST
/
v1
/
todo
Todo 생성
curl --request POST \
--url https://openapi.pluuug.com/v1/todo \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"inquiry": {
"id": 123
},
"dueDate": "2023-12-25",
"action": "<string>",
"inCharge": {
"id": 123
},
"dueTime": "<string>",
"actionHistory": "<string>"
}
'import requests
url = "https://openapi.pluuug.com/v1/todo"
payload = {
"inquiry": { "id": 123 },
"dueDate": "2023-12-25",
"action": "<string>",
"inCharge": { "id": 123 },
"dueTime": "<string>",
"actionHistory": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
inquiry: {id: 123},
dueDate: '2023-12-25',
action: '<string>',
inCharge: {id: 123},
dueTime: '<string>',
actionHistory: '<string>'
})
};
fetch('https://openapi.pluuug.com/v1/todo', 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://openapi.pluuug.com/v1/todo",
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([
'inquiry' => [
'id' => 123
],
'dueDate' => '2023-12-25',
'action' => '<string>',
'inCharge' => [
'id' => 123
],
'dueTime' => '<string>',
'actionHistory' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Signature: <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://openapi.pluuug.com/v1/todo"
payload := strings.NewReader("{\n \"inquiry\": {\n \"id\": 123\n },\n \"dueDate\": \"2023-12-25\",\n \"action\": \"<string>\",\n \"inCharge\": {\n \"id\": 123\n },\n \"dueTime\": \"<string>\",\n \"actionHistory\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-Signature", "<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://openapi.pluuug.com/v1/todo")
.header("X-API-Key", "<api-key>")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"inquiry\": {\n \"id\": 123\n },\n \"dueDate\": \"2023-12-25\",\n \"action\": \"<string>\",\n \"inCharge\": {\n \"id\": 123\n },\n \"dueTime\": \"<string>\",\n \"actionHistory\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.pluuug.com/v1/todo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inquiry\": {\n \"id\": 123\n },\n \"dueDate\": \"2023-12-25\",\n \"action\": \"<string>\",\n \"inCharge\": {\n \"id\": 123\n },\n \"dueTime\": \"<string>\",\n \"actionHistory\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"inquiry": {
"id": 123,
"uniqueId": "<string>",
"name": "<string>"
},
"type": "M",
"dueDate": "2023-12-25",
"action": "<string>",
"isComplete": true,
"completedAt": "2023-11-07T05:31:56Z",
"dDay": 123,
"created": "2023-11-07T05:31:56Z",
"inCharge": {
"id": 123,
"nickname": "<string>",
"email": "<string>",
"isActive": true,
"grade": {
"id": 123,
"title": "<string>"
}
},
"dueTime": "<string>"
}{
"nonField": [
"<string>"
],
"inquiry": {
"id": [
"<string>"
]
},
"inCharge": {
"id": [
"<string>"
]
},
"type": [
"<string>"
],
"dueDate": [
"<string>"
],
"dueTime": [
"<string>"
],
"action": [
"<string>"
],
"actionHistory": [
"<string>"
]
}Authorizations
HMAC-SHA256 방식으로 body를 secret key로 해싱하여 생성한 서명을 넣어야 합니다. 서버는 X-API-Key와 대응되는 secret key로 서명을 검증합니다.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
의뢰
Show child attributes
Show child attributes
타입
M- 미팅CA- 전화MS- 메시지E- 기타
Available options:
M, CA, MS, E 예정일
액션
Required string length:
1 - 2048담당자
Show child attributes
Show child attributes
예정 시간
액션 히스토리
Minimum string length:
1Response
의뢰
Show child attributes
Show child attributes
타입
M- 미팅CA- 전화MS- 메시지E- 기타
Available options:
M, CA, MS, E 예정일
액션
Maximum string length:
2048완료 여부
완료 일시
D-Day
생성일시
담당자
Show child attributes
Show child attributes
예정 시간
⌘I