그룹 생성
Request
POST https://api.solapi.com/messages/v4/groups/
메시지 그룹을 생성합니다.
Authorization 인증 필요 [?]
계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
message:write
role-message:write
ACTIVE
ACTIVE
Request Structure
{
"appId": "string",
"strict": "boolean",
"sdkVersion": "string",
"osPlatform": "string",
"customFields": "object",
"hint": "object",
"allowDuplicates": "boolean"
}
Body Params
Name
Type
Required
Description
appId
string
앱 아이디
strict
boolean
설명 없음
sdkVersion
string
SDK 버전
osPlatform
string
OS 플렛폼
allowDuplicates
boolean
설명 없음
Body / customFields
Body / hint
Samples
메시지 그룹 생성 POST /messages/v4/groups
Sample Request
{}
Sample Response
{
"count": {
"total": 0,
"sentTotal": 0,
"sentFailed": 0,
"sentSuccess": 0,
"sentPending": 0,
"sentReplacement": 0,
"refund": 0,
"registeredFailed": 0,
"registeredSuccess": 0
},
"countForCharge": {
"sms": {},
"lms": {},
"mms": {},
"ata": {},
"cta": {},
"cti": {},
"nsa": {},
"rcs_sms": {},
"rcs_lms": {},
"rcs_mms": {},
"rcs_tpl": {}
},
"balance": {
"requested": 0,
"replacement": 0,
"refund": 0,
"sum": 0
},
"point": {
"requested": 0,
"replacement": 0,
"refund": 0,
"sum": 0
},
"app": {
"profit": {
"sms": 0,
"lms": 0,
"mms": 0,
"ata": 0,
"cta": 0,
"cti": 0,
"nsa": 0,
"rcs_sms": 0,
"rcs_lms": 0,
"rcs_mms": 0,
"rcs_tpl": 0
},
"appId": null,
"version": null
},
"serviceMethod": "MT",
"sdkVersion": null,
"osPlatform": null,
"log": [
{
"createAt": "2021-11-16T05:09:40.150Z",
"message": "[::ffff:127.0.0.1] 메시지 그룹이 생성되었습니다."
}
],
"status": "PENDING",
"dateSent": null,
"dateCompleted": null,
"isRefunded": false,
"flagUpdated": false,
"prepaid": true,
"strict": false,
"masterAccountId": null,
"allowDuplicates": false,
"accountId": "12925149",
"apiVersion": "4",
"customFields": {},
"hint": null,
"groupId": "G4V202111161409408U7A6SEI9YC6VNO",
"price": {},
"dateCreated": "2021-11-16T05:09:40.153Z",
"dateUpdated": "2021-11-16T05:09:40.153Z",
"_id": "G4V202111161409408U7A6SEI9YC6VNO"
}
Sample Code
var request = require('request');
var options = {
headers: {
Authorization:
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4'
},
method: 'POST',
json: true,
url: 'http://api.solapi.com/messages/v4/groups'
};
request(options, function(error, response, body) {
if (error) throw error;
console.log('result :', body);
});
문서 생성일 : 2021-11-16
Last updated
Was this helpful?