# @riiid/santa-sdk-js

> Santa SDK for Javascript

Latest version **0.1.5** (published 2019-04-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @riiid/santa-sdk-js
pnpm add @riiid/santa-sdk-js
yarn add @riiid/santa-sdk-js
bun add @riiid/santa-sdk-js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2019-04-09 |
| First published | 2019-01-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 8.x |
| Dependencies | 3 |
| Unpacked size | 519.5 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | Riiid |
| Maintainers | jykim_riiid, zao1214 |

## Links

- npm: https://www.npmjs.com/package/@riiid/santa-sdk-js
- Repository: https://github.com/riiid/santa-sdk-js
- npm.io page: https://npm.io/package/@riiid/santa-sdk-js

## Dependencies (3)

- [rxjs](https://npm.io/package/rxjs.md) ^6.4.0
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.11

## Recent versions

- 0.1.5 (latest) — 2019-04-09
- 0.1.4 — 2019-04-09
- 0.1.3 — 2019-04-09
- 0.1.2 — 2019-04-09
- 0.1.1 — 2019-03-13
- 0.1.0 — 2019-03-10
- 0.0.6 — 2019-03-06
- 0.0.5 — 2019-03-04
- 0.0.4 — 2019-02-11
- 0.0.3 — 2019-01-31
- 1.0.2 — 2019-01-30
- 1.0.1 — 2019-01-30

## README

# santa-sdk-js
SDK for Riiider

## Installation
```
yarn add @riiid/santa-sdk-js
```

## Usage
```javascript
import {Auth, Payment} from '@riiid/santa-sdk-js';

const auth = new Auth(URL_AUTH, REQUEST_CONFIG);
const payment = new Payment(URL_PAYMENT, REQUEST_CONFIG);
```

## APIs
2가지 타입을 지원합니다 :hand:
* Promise - `default`
* Observable - suffix `$`
  * *ex)* `existEmail$`
### Auth
```javascript
existEmail({email})
getUser(token)
deleteUser(token)
signupWithEmail({email, password, token})
signinWithEmail({email, password})
getTokenWithSNS({token, snsToken, type})
updateTokens(token)
updatePassword({token, password})
createAnonymous(client_code)
```

### Payment
```javascript
preparePayment({token, payMethod, paymentItemId})
approvePayment({token, payMethod, payload})
getPaymentItemStatus({token, groupName})
getPaymentItemContents({token, paymentItemIds})
getPaymentItemContentById({token, contentId})
getEventContents(token)
getEventContentById({token, contentId})
getBannerContents(token)
getBannerContentById({token, contentId})
```

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