# ncp-sdk

> Naver Cloud Platform sdk

Latest version **1.0.4** (published 2021-12-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ncp-sdk
pnpm add ncp-sdk
yarn add ncp-sdk
bun add ncp-sdk
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-12-29 |
| First published | 2021-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 17 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | pukuba |
| Maintainers | pukuba |

## Links

- npm: https://www.npmjs.com/package/ncp-sdk
- Repository: https://github.com/pukuba/ncp-sdk
- Homepage: https://github.com/pukuba/ncp-sdk#readme
- Issues: https://github.com/pukuba/ncp-sdk/issues
- npm.io page: https://npm.io/package/ncp-sdk

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.24.0
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.1.1

## Recent versions

- 1.0.4 (latest) — 2021-12-29
- 1.0.3 — 2021-12-28
- 1.0.2 — 2021-11-23
- 1.0.1 — 2021-11-23

## README

# ncp-sdk

[![codecov](https://codecov.io/gh/pukuba/ncp-sdk/branch/master/graph/badge.svg?token=JRJ98QC1M3)](https://codecov.io/gh/pukuba/ncp-sdk)
[![Build Status](https://app.travis-ci.com/pukuba/ncp-sdk.svg?token=Qfh1H9rnMEdALKheMgyU&branch=master)](https://app.travis-ci.com/pukuba/ncp-sdk)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## install

```
npm install ncp-sdk
yarn add ncp-sdk
```

## Docs

| Class     | Method                            | Description                                                                  |
| --------- | --------------------------------- | ---------------------------------------------------------------------------- |
| NcloudSDK | [**sendMail**](src/models.ts#L19) | NCP의 Cloud Outbound Mailer를 이용하여 메일을 전송합니다                     |
| NcloudSDK | [**sendSMS**](src/models.ts#L32)  | NCP의 Simple & Easy Notification Service를 이용하여 문자 메세지를 전송합니다 |

<hr>

## Mail 전송 예시

```js
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))
```

## 메세지 전송 예시

```js
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))
```

---
_Source: https://npm.io/package/ncp-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
