8000 GitHub - pukuba/ncp-sdk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pukuba/ncp-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncp-sdk

codecov Build Status License: MIT

install

npm install ncp-sdk
yarn add ncp-sdk

Docs

Class Method Description
NcloudSDK sendMail NCP의 Cloud Outbound Mailer를 이용하여 메일을 전송합니다
NcloudSDK sendSMS NCP의 Simple & Easy Notification Service를 이용하여 문자 메세지를 전송합니다

Mail 전송 예시

import { NcloudSDK } from "ncp-sdk"

const sdk = new NcloudSDK({
    accessKey: process.env.ACCESS_KEY,
    secretKey: process.env.SECRET_KEY,
})

sdk.sendMail({
    sender: "pukuba@kakao.com",
    receiver: "20sunrin041@sunrint.hs.kr",
    title: "test email title",
    content: "test email content",
}).then((res) => console.log(res))

메세지 전송 예시

import { NcloudSDK } from "ncp-sdk"

const sdk = new NcloudSDK({
    accessKey: process.env.ACCESS_KEY,
    secretKey: process.env.SECRET_KEY,
    smsKey: process.env.SMS_KEY,
})

sdk.sendSMS({
    sender: "010xxxxxxxx",
    receiver: "010xxxxxxxx"
    content: "test sms content"
}).then((res) => console.log(res))

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0