Giter Club home page Giter Club logo

plivo-custom-access-sms's Introduction

plivo-custom-access-sms

Tools/resources Used:

  • Heroku - To deploy the app
  • Plivo Python Helper - To send SMS
  • Flask
  • RedisToGo Addon from Heroku - To use a lightweight DB

What it does?

  • This app internally uses plivo SMS API. With this app you can allow other to send message using you credentials along with some restriction.
  • Admin view of this app allows you to generate a random pass code.
  • This code can be given out to customers
  • And on the SMS test UI they can just put in this pass code and send SMS wherever they wish to.
  • The pass code lasts for 20 mins from the time they are generated by admin.
  • Admin view is protected by BASIC AUTH.

Few Points about Plivo SMS API

  • Sign up for a plivo account
  • Go to dashboard
  • Copy auth_id
  • Click on check box for auth_token and copy
  • Keep them in a safe place
  • Now buy a number. Yes for sending an SMS through plivo you need to have a number bought from plivo which would be used as a callerId for sending message.
  • When asked for which application the number should be attached to you are free to attach any application as for sending SMS using API doesn't application attached with the number donesn't affect. And Yes you can always attach another application to a number(Plivo DID) as and when needed.
  • Now to send SMS you can use your auth_id and auth_token in the following scripts of your preferred programming language:
  • Python
  • PHP
  • Ruby
  • Java
  • nodeJs

Important Note: If you are sending bulk messages then src paramter in SMS API should have destination numbers divided by "<" delimeter. You need to change the src param accordingly in the above mentioned scripts

  • Also with certain providers we see some messages get blocked because of some restrictions on rates or content/type of SMS. Like for Verizon we have received suggestions from our provider: Please do not send more than 10 messages in a 1 minute period with the same origination and/or termination number. Typically, this spam block will be on for 24 hrs.

plivo-custom-access-sms's People

Contributors

keshavagrawal89 avatar

Watchers

 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.