Coder Social home page Coder Social logo

onetouchcallbackemailer's Introduction

OneTouchCallbackEmailer

A simple way to get emails for OneTouch request callbacks. Every time a OneTouch request is responded to, a callback is sent to the URL where this code is running and it sends you an email with the details of the callback.

Requirements

This code uses the SendGrid API to send the emails. You can create a free account (for up to 12k per month) at https://app.sendgrid.com/signup

  • Account with SendGrid
  • API key from SendGrid
  • PHP v5.6+
  • Composer

Installation

  1. Clone code to a local folder
  2. Run Composer Install to install SendGrid libraries
  3. Configure PHP to host file (or run using the CLI below)

Use

  1. Put your SendGrid API key into sendgrid.env (https://github.com/sendgrid/sendgrid-php)
  2. Serve the PHP file. A quick way to do this;
    • php -S localhost:8000
    • ngrok http 8000
  3. In your Authy dashboard (dashboard.authy.com) go to Settings and scroll down to the OneTouch Settings section. Enter in your URL in the following format for the Endpoint/URL.

http://yourhost.yourdomain.com/[email protected]

onetouchcallbackemailer's People

Contributors

securitysimon avatar

Watchers

 avatar  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.