시스템 발송 한도 증가 요청 목록 조회

Request

1
GET https://api.coolsms.co.kr/quota/v1/me/system
Copied!
시스템 발송 한도 증가 요청 목록을 조회합니다.

Authorization 인증 필요 [?]

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

Query Params

Name
Type
Required
Allowed Operator [?]
Description
startKey
string
eq
현재 목록을 불러올 기준이 되는 키
limit
number
eq
한 페이지에 불러옥 목록 개수
status
string
eq
상태값
handleKey
string
eq
각각 요청의 고유한 키
dateCreated
date
gte, lte, gt, lt, eq
최초 생성 날짜
dateUpdated
date
gte, lte, gt, lt, eq
최근 수정 날짜

Samples

사용자 쿼터 증가 요청 목록 조회

Sample Request
1
http://api.coolsms.co.kr/quota/v1/me/system?status=APPROVED
Copied!
Sample Response
1
{
2
"limit": 20,
3
"increaseQuotaList": [
4
{
5
"status": "APPROVED",
6
"fileIds": [
7
"ST01FE190429073419477NoBqiP9u111",
8
"ST01FE190429073419477NoBqiP9u112"
9
],
10
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
11
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
12
"handleKey": "QT01IQ191230000031829XykGqyomJBc",
13
"accountId": "19205486948203",
14
"requestedQuota": 100000,
15
"dateCreated": "2019-12-30T00:00:31.830Z",
16
"dateUpdated": "2019-12-30T00:00:31.830Z"
17
},
18
{
19
"status": "APPROVED",
20
"fileIds": [
21
"ST01FE190429073419477NoBqiP9u111",
22
"ST01FE190429073419477NoBqiP9u112"
23
],
24
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
25
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
26
"handleKey": "QT01IQ191230000031826EAw9cSa8QQv",
27
"accountId": "19205486948203",
28
"requestedQuota": 100000,
29
"dateCreated": "2019-12-30T00:00:31.826Z",
30
"dateUpdated": "2019-12-30T00:00:31.826Z"
31
},
32
{
33
"status": "APPROVED",
34
"fileIds": [
35
"ST01FE190429073419477NoBqiP9u111",
36
"ST01FE190429073419477NoBqiP9u112"
37
],
38
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
39
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
40
"handleKey": "QT01IQ191230000031822s3hICoHgPuZ",
41
"accountId": "19205486948203",
42
"requestedQuota": 100000,
43
"dateCreated": "2019-12-30T00:00:31.822Z",
44
"dateUpdated": "2019-12-30T00:00:31.822Z"
45
},
46
{
47
"status": "APPROVED",
48
"fileIds": [
49
"ST01FE190429073419477NoBqiP9u111",
50
"ST01FE190429073419477NoBqiP9u112"
51
],
52
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
53
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
54
"handleKey": "QT01IQ1912300000318188XYaBrN42s8",
55
"accountId": "19205486948203",
56
"requestedQuota": 100000,
57
"dateCreated": "2019-12-30T00:00:31.819Z",
58
"dateUpdated": "2019-12-30T00:00:31.819Z"
59
},
60
{
61
"status": "APPROVED",
62
"fileIds": [
63
"ST01FE190429073419477NoBqiP9u111",
64
"ST01FE190429073419477NoBqiP9u112"
65
],
66
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
67
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
68
"handleKey": "QT01IQ191230000031815iJbZxZ8GBsn",
69
"accountId": "19205486948203",
70
"requestedQuota": 100000,
71
"dateCreated": "2019-12-30T00:00:31.816Z",
72
"dateUpdated": "2019-12-30T00:00:31.816Z"
73
},
74
{
75
"status": "APPROVED",
76
"fileIds": [
77
"ST01FE190429073419477NoBqiP9u111",
78
"ST01FE190429073419477NoBqiP9u112"
79
],
80
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
81
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
82
"handleKey": "QT01IQ191230000031811Ww8yX6KSgXx",
83
"accountId": "19205486948203",
84
"requestedQuota": 100000,
85
"dateCreated": "2019-12-30T00:00:31.812Z",
86
"dateUpdated": "2019-12-30T00:00:31.812Z"
87
},
88
{
89
"status": "APPROVED",
90
"fileIds": [
91
"ST01FE190429073419477NoBqiP9u111",
92
"ST01FE190429073419477NoBqiP9u112"
93
],
94
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
95
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
96
"handleKey": "QT01IQ191230000031808q9eITKpYmzx",
97
"accountId": "19205486948203",
98
"requestedQuota": 100000,
99
"dateCreated": "2019-12-30T00:00:31.809Z",
100
"dateUpdated": "2019-12-30T00:00:31.809Z"
101
},
102
{
103
"status": "APPROVED",
104
"fileIds": [
105
"ST01FE190429073419477NoBqiP9u111",
106
"ST01FE190429073419477NoBqiP9u112"
107
],
108
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
109
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
110
"handleKey": "QT01IQ191230000031804wXg9s999tmR",
111
"accountId": "19205486948203",
112
"requestedQuota": 100000,
113
"dateCreated": "2019-12-30T00:00:31.805Z",
114
"dateUpdated": "2019-12-30T00:00:31.805Z"
115
},
116
{
117
"status": "APPROVED",
118
"fileIds": [
119
"ST01FE190429073419477NoBqiP9u111",
120
"ST01FE190429073419477NoBqiP9u112"
121
],
122
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
123
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
124
"handleKey": "QT01IQ191230000031801goDdo7k73Iq",
125
"accountId": "19205486948203",
126
"requestedQuota": 100000,
127
"dateCreated": "2019-12-30T00:00:31.801Z",
128
"dateUpdated": "2019-12-30T00:00:31.801Z"
129
},
130
{
131
"status": "APPROVED",
132
"fileIds": [
133
"ST01FE190429073419477NoBqiP9u111",
134
"ST01FE190429073419477NoBqiP9u112"
135
],
136
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
137
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
138
"handleKey": "QT01IQ191230000031797eQpwVx0TJoz",
139
"accountId": "19205486948203",
140
"requestedQuota": 100000,
141
"dateCreated": "2019-12-30T00:00:31.798Z",
142
"dateUpdated": "2019-12-30T00:00:31.798Z"
143
},
144
{
145
"status": "APPROVED",
146
"fileIds": [
147
"ST01FE190429073419477NoBqiP9u111",
148
"ST01FE190429073419477NoBqiP9u112"
149
],
150
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
151
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
152
"handleKey": "QT01IQ191230000031793EhTRDfeLVbs",
153
"accountId": "19205486948203",
154
"requestedQuota": 100000,
155
"dateCreated": "2019-12-30T00:00:31.794Z",
156
"dateUpdated": "2019-12-30T00:00:31.794Z"
157
},
158
{
159
"status": "APPROVED",
160
"fileIds": [
161
"ST01FE190429073419477NoBqiP9u111",
162
"ST01FE190429073419477NoBqiP9u112"
163
],
164
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
165
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
166
"handleKey": "QT01IQ191230000031790iNw4A4vIwlP",
167
"accountId": "19205486948203",
168
"requestedQuota": 100000,
169
"dateCreated": "2019-12-30T00:00:31.790Z",
170
"dateUpdated": "2019-12-30T00:00:31.790Z"
171
},
172
{
173
"status": "APPROVED",
174
"fileIds": [
175
"ST01FE190429073419477NoBqiP9u111",
176
"ST01FE190429073419477NoBqiP9u112"
177
],
178
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
179
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
180
"handleKey": "QT01IQ191230000031786bFi8qUIDo4g",
181
"accountId": "19205486948203",
182
"requestedQuota": 100000,
183
"dateCreated": "2019-12-30T00:00:31.787Z",
184
"dateUpdated": "2019-12-30T00:00:31.787Z"
185
},
186
{
187
"status": "APPROVED",
188
"fileIds": [
189
"ST01FE190429073419477NoBqiP9u111",
190
"ST01FE190429073419477NoBqiP9u112"
191
],
192
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
193
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
194
"handleKey": "QT01IQ191230000031782vy6mIs0tRbH",
195
"accountId": "19205486948203",
196
"requestedQuota": 100000,
197
"dateCreated": "2019-12-30T00:00:31.783Z",
198
"dateUpdated": "2019-12-30T00:00:31.783Z"
199
},
200
{
201
"status": "APPROVED",
202
"fileIds": [
203
"ST01FE190429073419477NoBqiP9u111",
204
"ST01FE190429073419477NoBqiP9u112"
205
],
206
"reasonRequested": "오늘은 날씨가 정말 좋습니다.",
207
"reasonRejected": "오늘은 날씨가 정말 안 좋습니다.",
208
"handleKey": "QT01IQ191230000031772nt08941l1nJ",
209
"accountId": "19205486948203",
210
"requestedQuota": 100000,
211
"dateCreated": "2019-12-30T00:00:31.778Z",
212
"dateUpdated": "2019-12-30T00:00:31.778Z"
213
}
214
],
215
"startKey": "QT01IQ191230000031829XykGqyomJBc",
216
"nextKey": null
217
}
Copied!
Sample Code
NODE
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.coolsms.co.kr/quota/v1/me/system?status=APPROVED'
11
};
12
13
request(options, function(error, response, body) {
14
if (error) throw error;
15
console.log('result :', body);
16
});
Copied!
1
<?php
2
$url = "http://api.coolsms.co.kr/quota/v1/me/system?status=APPROVED";
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.coolsms.co.kr/quota/v1/me/system?status=APPROVED"
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.coolsms.co.kr/quota/v1/me/system?status=APPROVED
Copied!
1
require 'net/http'
2
require 'uri'
3
require 'json'
4
5
uri = URI.parse("http://api.coolsms.co.kr/quota/v1/me/system?status=APPROVED")
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.coolsms.co.kr/quota/v1/me/system?status=APPROVED"
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 coolsms;
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.coolsms.co.kr/quota/v1/me/system?status=APPROVED";
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-12-30
Last modified 1yr ago