Skip to content

Commit 0fda232

Browse files
committed
RCS 발송 실패 시 일반 문자 대체 발송 예제 추가
1 parent 210ba85 commit 0fda232

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

examples/javascript/common/src/rcs/send_rcs.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,29 @@ messageService
130130
},
131131
)
132132
.then(res => console.log(res));
133+
134+
// RCS 발송 실패 시 일반 문자로 대체 발송하는 예제
135+
messageService
136+
.send({
137+
to: '수신번호',
138+
from: '계정에서 등록한 RCS용 발신번호 입력',
139+
text: '한글 45자, 영자 90자 이하 입력되면 자동으로 SMS타입의 메시지가 발송됩니다.',
140+
rcsOptions: {
141+
brandId: 'RCS 브랜드의 아이디',
142+
buttons: [
143+
{
144+
buttonType: 'WL',
145+
buttonName: '웹링크 버튼',
146+
link: 'https://으로 시작하는 웹링크 주소',
147+
}
148+
],
149+
},
150+
replacements: [
151+
{
152+
to: '수신번호',
153+
from: '계정에서 등록한 발신번호 입력',
154+
text: 'RCS 발송 실패 시 대체 발송될 문자 내용',
155+
},
156+
],
157+
})
158+
.then(res => console.log(res));

0 commit comments

Comments
 (0)