0.1.5 • Published 5 years ago

@riiid/santa-sdk-js v0.1.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

santa-sdk-js

SDK for Riiider

Installation

yarn add @riiid/santa-sdk-js

Usage

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

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

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})
0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago