Socket
Socket
Sign inDemoInstall

@riiid/santa-sdk-js

Package Overview
Dependencies
8
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @riiid/santa-sdk-js

Santa SDK for Javascript


Version published
Weekly downloads
1
Maintainers
2
Install size
7.14 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 09 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc