GithubHelp home page GithubHelp logo

hartl3y94 / solapi-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from solapi/solapi-nodejs

0.0 0.0 0.0 440 KB

SOLAPI SDK for Node.js

Home Page: https://solapi.github.io/solapi-nodejs

License: MIT License

TypeScript 100.00%

solapi-nodejs's Introduction

SOLAPI SDK for Node.js(Server Side Only)

FOSSA Status

You can send text messages(SMS, LMS, MMS), Kakao friendtalk(include notification friendtalk) in Korea using this package.

Installing

To use the SDK, simply use npm package manager CLI. Type the following into a terminal window.

npm

npm install --save solapi

yarn

yarn add solapi

Usage

JavaScript

const solapi = require('solapi').default;

// apiKey, apiSecret 설정
const messageService = new solapi('ENTER_YOUR_API_KEY', 'ENTER_YOUR_API_SECRET');

// 2건 이상의 메시지를 발송할 때는 sendMany, 단일 건 메시지 발송은 sendOne을 이용해야 합니다. 
messageService.sendMany([
    {
      to: '01000000001',
      from: '01012345678',
      text: '한글 45자, 영자 90자 이하 입력되면 자동으로 SMS타입의 메시지가 발송됩니다.'
    },
    {
      to: '01000000002',
      from: '01012345678',
      text: '한글 45자, 영자 90자 이상 입력되면 자동으로 LMS타입의 문자메시지가 발송됩니다. 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    }
    // 1만건까지 추가 가능
  ]).then(res => console.log(res))
  .catch(err => console.error(err));

Opening Issues

If you encounter a bug with the SOLAPI SDK for Javascript we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of the SDK, Node.js or browser environment and OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.

License

Licensed under the MIT License.

FOSSA Status

solapi-nodejs's People

Contributors

dependabot[bot] avatar edencha avatar fossabot avatar kimgenius avatar ksh-code avatar palbahngmiyine avatar wileyday avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.