문서 이력 조회
개요
문서 이력을 조회합니다.
URL
/api/v1/document/{id}/history
요청 데이터
항목 | 타입 | 위치 | 설명 |
---|
id | String | query | 문서 아이디 |
응답 데이터
항목 | 타입 | 위치 | 설명 |
---|
document | Object | body | 문서 |
id | String | body | 문서 아이디 |
history[] | Array | body | 문서 이력 배열 |
index | Integer | body | 문서 이력 순번 |
name | String | body | 문서 이력 대상자 이름 |
email | String | body | 문서 이력 대상자 이메일 |
mobile | String | body | 문서 이력 대상자 휴대폰 |
status_description | String | body | 문서 이력 상태 설명 |
history_datetime | String | body | 문서 이력 일시 |
응답 데이터 예시
{
"document": {
"id": "10001",
"history": [
{
"index": 1,
"name": "문서 이력 대상자 이름",
"email": "문서 이력 대상자 이메일",
"status_description": "작성중",
"history_datetime": "yyyy-MM-dd HH:mm:ss"
},
{
"index": 2,
"name": "문서 이력 대상자 이름",
"mobile": "문서 이력 대상자 휴대폰",
"status_description": "진행",
"history_datetime": "yyyy-MM-dd HH:mm:ss"
}
]
}
}
예제 코드
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://doc.signok.com/api/v1/document/{id}/history")
.method("GET", null)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer ACCESS_TOKEN")
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://doc.signok.com/api/v1/document/{id}/history");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer ACCESS_TOKEN");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer ACCESS_TOKEN");
var requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://doc.signok.com/api/v1/document/{id}/history", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log("error", error));
var axios = require("axios");
var config = {
method: "GET",
url: "https://doc.signok.com/api/v1/document/{id}/history",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer ACCESS_TOKEN"
},
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import http.client
requestData = ""
conn = http.client.HTTPSConnection("doc.signok.com")
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ACCESS_TOKEN"
}
conn.request("GET", "/api/v1/document/{id}/history", requestData, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))