SOLAPI
Search…
발신번호 개수 증가 요청

Request

1
POST https://api.solapi.com/senderid/v1/papers/limitation
Copied!
발신번호 개수를 더 사용할 수 있도록 관리자에게 요청합니다.

Authorization 인증 필요 [?]

계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
senderid:write
role-senderid:write
ACTIVE
ACTIVE
O

Request Structure

1
{
2
"documents": "Array",
3
"limit": "number"
4
}
Copied!

Body Params

Name
Type
Required
Description
documents
Array
O
문서 ID 목록
limit
number
O
한 페이지에 불러옥 목록 개수

Samples

createLimitationSenderIds.spec.js

Sample Request
1
{
2
"documents": [
3
"DOC20181030105615MMXDST163SYMMX3"
4
],
5
"limit": 10
6
}
Copied!
Sample Response
1
{
2
"limit": 2,
3
"accountId": "12925149",
4
"senderIds": [
5
{
6
"unlockDuplicate": {
7
"duplicateId": null,
8
"reason": null,
9
"reasonForRequested": null,
10
"name": null,
11
"status": null,
12
"dateCreated": null,
13
"dateUpdated": null
14
},
15
"status": "PENDING",
16
"expireAt": null,
17
"method": null,
18
"log": [],
19
"dateCreated": "2019-10-28T17:59:25.682Z",
20
"dateUpdated": "2019-10-28T17:59:25.682Z",
21
"approvalDocuments": [],
22
"handleKey": "SED20181030105615MMXDST163SYMMX2",
23
"phoneNumber": "01000000000"
24
}
25
],
26
"limitationDocuments": [
27
{
28
"documents": [
29
"DOC20181030105615MMXDST163SYMMX3"
30
],
31
"reason": null,
32
"status": "PENDING",
33
"dateCreated": "2019-10-28T17:59:25.701Z",
34
"dateUpdated": "2019-10-28T17:59:25.701Z",
35
"limitationId": "LID20191029025925R1LPZRRWTACLYPH",
36
"limitRequested": 10,
37
"limitBeforeRequest": 2
38
}
39
],
40
"dateCreated": "2019-10-28T17:59:25.683Z",
41
"dateUpdated": "2019-10-28T17:59:25.701Z"
42
}
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
'Content-Type': 'application/json'
8
},
9
body: {
10
documents: 'DOC20181030105615MMXDST163S...',
11
limit: 10
12
},
13
method: 'POST',
14
json: true,
15
url: 'http://api.solapi.com/senderid/v1/papers/limitation'
16
};
17
18
request(options, function(error, response, body) {
19
if (error) throw error;
20
console.log('result :', body);
21
});
Copied!
1
var options = {
2
headers: {
3
Authorization:
4
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4',
5
'Content-Type': 'application/json'
6
},
7
body: {
8
documents: 'DOC20181030105615MMXDST163S...',
9
limit: 10
10
},
11
method: 'POST',
12
url: 'http://api.solapi.com/senderid/v1/papers/limitation'
13
};
14
15
$.ajax(options).done(function(response) {
16
console.log(response);
17
});
Copied!
1
<?php
2
$url = "http://api.solapi.com/senderid/v1/papers/limitation";
3
$data = '{"documents":"DOC20181030105615MMXDST163S...","limit":10}';
4
5
$options = array(
6
'http' => array(
7
'header' => "Authorization: HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4\r\n" . "Content-Type: application/json\r\n",
8
'content' => $data,
9
'method' => 'POST'
10
)
11
);
12
13
$context = stream_context_create($options);
14
$result = file_get_contents($url, false, $context);
15
16
var_dump($result);
Copied!
1
import requests
2
3
url = "http://api.solapi.com/senderid/v1/papers/limitation"
4
headers = {
5
"Authorization": "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4",
6
"Content-Type": "application/json"
7
}
8
data = '{"documents":"DOC20181030105615MMXDST163S...","limit":10}'
9
10
response = requests.post(url, headers=headers, data=data)
11
print(response.status_code)
12
print(response.text)
Copied!
1
#!/bin/bash
2
curl -X POST \
3
-H 'Authorization: HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4' \
4
-H 'Content-Type: application/json' \
5
-d '{"documents":"DOC20181030105615MMXDST163S...","limit":10}' \
6
http://api.solapi.com/senderid/v1/papers/limitation
Copied!
1
require 'net/http'
2
require 'uri'
3
require 'json'
4
5
uri = URI.parse("http://api.solapi.com/senderid/v1/papers/limitation")
6
7
headers = {
8
"Authorization": "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4",
9
"Content-Type": "application/json"
10
}
11
data = {
12
"documents": "DOC20181030105615MMXDST163S...",
13
"limit": 10
14
}
15
http = Net::HTTP.new(uri.host, uri.port)
16
request = Net::HTTP::Post.new(uri.request_uri, headers)
17
request.body = data.to_json
18
19
response = http.request(request)
20
puts response.code
21
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/papers/limitation"
12
data := strings.NewReader(`{"documents":"DOC20181030105615MMXDST163S...","limit":10}`)
13
14
req, err := http.NewRequest("POST", uri, data)
15
if err != nil { panic(err) }
16
17
req.Header.Set("Authorization", "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4")
18
req.Header.Set("Content-Type", "application/json")
19
20
client := &http.Client{}
21
resp, err := client.Do(req)
22
if err != nil { panic(err) }
23
defer resp.Body.Close()
24
25
bytes, _ := ioutil.ReadAll(resp.Body)
26
str := string(bytes)
27
fmt.Println(str)
28
}
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/papers/limitation";
12
String parameters = "{\"documents\":\"DOC20181030105615MMXDST163S...\",\"limit\":10}";
13
14
URL url = new URL(targetUrl);
15
HttpURLConnection con = (HttpURLConnection) url.openConnection();
16
17
con.setRequestMethod("POST");
18
19
con.setRequestProperty("Authorization", "HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4");
20
con.setRequestProperty("Content-Type", "application/json");
21
22
con.setDoOutput(true);
23
DataOutputStream wr = new DataOutputStream(con.getOutputStream());
24
wr.writeBytes(parameters);
25
wr.flush();
26
wr.close();
27
28
int responseCode = con.getResponseCode();
29
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
30
String line;
31
StringBuffer response = new StringBuffer();
32
while ((line = in.readLine()) != null) {
33
response.append(line);
34
}
35
in.close();
36
37
System.out.println("HTTP response code : " + responseCode);
38
System.out.println("HTTP body : " + response.toString());
39
}
40
}
Copied!
문서 생성일 : 2019-10-28
Last modified 1yr ago