SOLAPI
Search…
문서 목록 조회

Request

1
GET https://api.solapi.com/senderid/v1/documents
Copied!
문서 목록을 조회합니다.

Authorization 인증 필요 [?]

계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
senderid:read
role-senderid:read

Query Params

Name
Type
Required
Allowed Operator [?]
Description
documentId
string
eq
문서 ID
startDate
string
eq
검색 날짜 시작 범위
endDate
string
eq
검색 날짜 끝 범위
startKey
string
eq
현재 목록을 불러올 기준이 되는 키
limit
number
eq
한 페이지에 불러옥 목록 개수
category
string
eq
문서 카테고리
use
boolean
eq
문서 사용 여부

Samples

getDocumentList.spec.js

Sample Request
1
http://api.solapi.com/senderid/v1/documents
Copied!
Sample Response
1
{
2
"data": [
3
{
4
"use": false,
5
"documentId": "DOC20181042905615MMXDST163SYMMXV",
6
"accountId": "12925149",
7
"name": "p1rLY8HPqzEd5FP.png",
8
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
9
"originalName": "image.jpg",
10
"category": "SENDERID_APPROVAL",
11
"dateCreated": "2019-10-28T17:59:27.221Z"
12
},
13
{
14
"use": false,
15
"documentId": "DOC20181042805615MMXDST163SYMMXV",
16
"accountId": "12925149",
17
"name": "p1rLY8HPqzEd5FP.png",
18
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
19
"originalName": "image.jpg",
20
"category": "SENDERID_APPROVAL",
21
"dateCreated": "2019-10-28T17:59:27.221Z"
22
},
23
{
24
"use": false,
25
"documentId": "DOC20181042705615MMXDST163SYMMXV",
26
"accountId": "12925149",
27
"name": "p1rLY8HPqzEd5FP.png",
28
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
29
"originalName": "image.jpg",
30
"category": "SENDERID_APPROVAL",
31
"dateCreated": "2019-10-28T17:59:27.221Z"
32
},
33
{
34
"use": false,
35
"documentId": "DOC20181042605615MMXDST163SYMMXV",
36
"accountId": "12925149",
37
"name": "p1rLY8HPqzEd5FP.png",
38
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
39
"originalName": "image.jpg",
40
"category": "SENDERID_APPROVAL",
41
"dateCreated": "2019-10-28T17:59:27.221Z"
42
},
43
{
44
"use": false,
45
"documentId": "DOC20181042505615MMXDST163SYMMXV",
46
"accountId": "12925149",
47
"name": "p1rLY8HPqzEd5FP.png",
48
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
49
"originalName": "image.jpg",
50
"category": "SENDERID_APPROVAL",
51
"dateCreated": "2019-10-28T17:59:27.221Z"
52
},
53
{
54
"use": false,
55
"documentId": "DOC20181042405615MMXDST163SYMMXV",
56
"accountId": "12925149",
57
"name": "p1rLY8HPqzEd5FP.png",
58
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
59
"originalName": "image.jpg",
60
"category": "SENDERID_APPROVAL",
61
"dateCreated": "2019-10-28T17:59:27.221Z"
62
},
63
{
64
"use": false,
65
"documentId": "DOC20181042305615MMXDST163SYMMXV",
66
"accountId": "12925149",
67
"name": "p1rLY8HPqzEd5FP.png",
68
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
69
"originalName": "image.jpg",
70
"category": "SENDERID_APPROVAL",
71
"dateCreated": "2019-10-28T17:59:27.221Z"
72
},
73
{
74
"use": false,
75
"documentId": "DOC20181042205615MMXDST163SYMMXV",
76
"accountId": "12925149",
77
"name": "p1rLY8HPqzEd5FP.png",
78
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
79
"originalName": "image.jpg",
80
"category": "SENDERID_APPROVAL",
81
"dateCreated": "2019-10-28T17:59:27.221Z"
82
},
83
{
84
"use": false,
85
"documentId": "DOC20181042105615MMXDST163SYMMXV",
86
"accountId": "12925149",
87
"name": "p1rLY8HPqzEd5FP.png",
88
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
89
"originalName": "image.jpg",
90
"category": "SENDERID_APPROVAL",
91
"dateCreated": "2019-10-28T17:59:27.221Z"
92
},
93
{
94
"use": false,
95
"documentId": "DOC20181042005615MMXDST163SYMMXV",
96
"accountId": "12925149",
97
"name": "p1rLY8HPqzEd5FP.png",
98
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
99
"originalName": "image.jpg",
100
"category": "SENDERID_APPROVAL",
101
"dateCreated": "2019-10-28T17:59:27.221Z"
102
},
103
{
104
"use": false,
105
"documentId": "DOC20181041905615MMXDST163SYMMXV",
106
"accountId": "12925149",
107
"name": "p1rLY8HPqzEd5FP.png",
108
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
109
"originalName": "image.jpg",
110
"category": "SENDERID_LIMITATION",
111
"dateCreated": "2018-03-01T09:00:00.000Z"
112
},
113
{
114
"use": false,
115
"documentId": "DOC20181041805615MMXDST163SYMMXV",
116
"accountId": "12925149",
117
"name": "p1rLY8HPqzEd5FP.png",
118
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
119
"originalName": "image.jpg",
120
"category": "SENDERID_LIMITATION",
121
"dateCreated": "2018-03-01T09:00:00.000Z"
122
},
123
{
124
"use": false,
125
"documentId": "DOC20181041705615MMXDST163SYMMXV",
126
"accountId": "12925149",
127
"name": "p1rLY8HPqzEd5FP.png",
128
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
129
"originalName": "image.jpg",
130
"category": "SENDERID_LIMITATION",
131
"dateCreated": "2018-03-01T09:00:00.000Z"
132
},
133
{
134
"use": false,
135
"documentId": "DOC20181041605615MMXDST163SYMMXV",
136
"accountId": "12925149",
137
"name": "p1rLY8HPqzEd5FP.png",
138
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
139
"originalName": "image.jpg",
140
"category": "SENDERID_LIMITATION",
141
"dateCreated": "2018-03-01T09:00:00.000Z"
142
},
143
{
144
"use": false,
145
"documentId": "DOC20181041505615MMXDST163SYMMXV",
146
"accountId": "12925149",
147
"name": "p1rLY8HPqzEd5FP.png",
148
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
149
"originalName": "image.jpg",
150
"category": "SENDERID_LIMITATION",
151
"dateCreated": "2018-03-01T09:00:00.000Z"
152
},
153
{
154
"use": false,
155
"documentId": "DOC20181041405615MMXDST163SYMMXV",
156
"accountId": "12925149",
157
"name": "p1rLY8HPqzEd5FP.png",
158
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
159
"originalName": "image.jpg",
160
"category": "SENDERID_LIMITATION",
161
"dateCreated": "2018-03-01T09:00:00.000Z"
162
},
163
{
164
"use": false,
165
"documentId": "DOC20181041305615MMXDST163SYMMXV",
166
"accountId": "12925149",
167
"name": "p1rLY8HPqzEd5FP.png",
168
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
169
"originalName": "image.jpg",
170
"category": "SENDERID_LIMITATION",
171
"dateCreated": "2018-03-01T09:00:00.000Z"
172
},
173
{
174
"use": false,
175
"documentId": "DOC20181041205615MMXDST163SYMMXV",
176
"accountId": "12925149",
177
"name": "p1rLY8HPqzEd5FP.png",
178
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
179
"originalName": "image.jpg",
180
"category": "SENDERID_LIMITATION",
181
"dateCreated": "2018-03-01T09:00:00.000Z"
182
},
183
{
184
"use": false,
185
"documentId": "DOC20181041105615MMXDST163SYMMXV",
186
"accountId": "12925149",
187
"name": "p1rLY8HPqzEd5FP.png",
188
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
189
"originalName": "image.jpg",
190
"category": "SENDERID_LIMITATION",
191
"dateCreated": "2018-03-01T09:00:00.000Z"
192
},
193
{
194
"use": false,
195
"documentId": "DOC20181041005615MMXDST163SYMMXV",
196
"accountId": "12925149",
197
"name": "p1rLY8HPqzEd5FP.png",
198
"url": "https://coolsms-apps-test.s3.ap-northeast-2.amazonaws.com/ymotD9u4eYMr/thumbnails/LL8nsWzZEEX5e0B.png",
199
"originalName": "image.jpg",
200
"category": "SENDERID_LIMITATION",
201
"dateCreated": "2018-03-01T09:00:00.000Z"
202
}
203
],
204
"nextKey": "DOC20181040905615MMXDST163SYMMXV"
205
}
Copied!
Sample Code
NODE
JQUERY
PHP
PYTHON
CURL
RUBY
GO
JAVA
1
var request = require('request');
2
3
var options = {
4
headers: {
5
Authorization:
6
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4'
7
},
8
method: 'GET',
9
json: true,
10
url: 'http://api.solapi.com/senderid/v1/documents'
11
};
12
13
request(options, function(error, response, body) {
14
if (error) throw error;
15
console.log('result :', body);
16
});
Copied!
1
var options = {
2
headers: {
3
Authorization:
4
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4'
5
},
6
method: 'GET',
7
url: 'http://api.solapi.com/senderid/v1/documents'
8
};
9
10
$.ajax(options).done(function(response) {
11
console.log(response);
12
});
Copied!
1
<?php
2
$url = "http://api.solapi.com/senderid/v1/documents";
3
4
$options = array(
5
'http' => array(
6
'header' => "Authorization: HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4\r\n",
7
'method' => 'GET'
8
)
9
);
10
11
$context = stream_context_create($options);
12
$result = file_get_contents($url, false, $context);
13
14
var_dump($result);
Copied!
1
import requests
2
3
url = "http://api.solapi.com/senderid/v1/documents"
4
headers = {
5
"Authorization": "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4"
6
}
7
8
response = requests.get(url, headers=headers)
9
print(response.status_code)
10
print(response.text)
Copied!
1
#!/bin/bash
2
curl -X GET \
3
-H 'Authorization: HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4' \
4
http://api.solapi.com/senderid/v1/documents
Copied!
1
require 'net/http'
2
require 'uri'
3
require 'json'
4
5
uri = URI.parse("http://api.solapi.com/senderid/v1/documents")
6
7
headers = {
8
"Authorization": "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4"
9
}
10
http = Net::HTTP.new(uri.host, uri.port)
11
request = Net::HTTP::Get.new(uri.request_uri, headers)
12
13
response = http.request(request)
14
puts response.code
15
puts response.body
Copied!
1
package main
2
3
import (
4
"fmt"
5
"io/ioutil"
6
"net/http"
7
"strings"
8
)
9
10
func main() {
11
uri := "http://api.solapi.com/senderid/v1/documents"
12
13
req, err := http.NewRequest("GET", uri, nil)
14
if err != nil { panic(err) }
15
16
req.Header.Set("Authorization", "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4")
17
18
client := &http.Client{}
19
resp, err := client.Do(req)
20
if err != nil { panic(err) }
21
defer resp.Body.Close()
22
23
bytes, _ := ioutil.ReadAll(resp.Body)
24
str := string(bytes)
25
fmt.Println(str)
26
}
Copied!
1
package solapi;
2
3
import java.io.BufferedReader;
4
import java.io.DataOutputStream;
5
import java.io.InputStreamReader;
6
import java.net.HttpURLConnection;
7
import java.net.URL;
8
9
public class Request {
10
public static void main(String[] args) throws Exception {
11
String targetUrl = "http://api.solapi.com/senderid/v1/documents";
12
13
URL url = new URL(targetUrl);
14
HttpURLConnection con = (HttpURLConnection) url.openConnection();
15
16
con.setRequestMethod("GET");
17
18
con.setRequestProperty("Authorization", "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4");
19
20
con.setDoOutput(true);
21
DataOutputStream wr = new DataOutputStream(con.getOutputStream());
22
wr.writeBytes(parameters);
23
wr.flush();
24
wr.close();
25
26
int responseCode = con.getResponseCode();
27
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
28
String line;
29
StringBuffer response = new StringBuffer();
30
while ((line = in.readLine()) != null) {
31
response.append(line);
32
}
33
in.close();
34
35
System.out.println("HTTP response code : " + responseCode);
36
System.out.println("HTTP body : " + response.toString());
37
}
38
}
Copied!
문서 생성일 : 2019-10-28
Last modified 1yr ago