GithubHelp home page GithubHelp logo

gotocallbackhandler's Introduction

GoToCallbackHandler

I built this basic server to illustrate a typical set up to handle callbacks coming from the hellosign api.

The primary things a callback handler must to have are:

  1. A secure, public url.
  2. A route that accepts post requests in multipart/form-data format.
  3. Before doing any other event parsing, it should send back a 200 status response, along with the plain text response of 'hello api event received.'

I also recommend to check the callback headers for additional validation: https://app.hellosign.com/api/eventsAndCallbacksWalkthrough#CallbackHeaders but this is not required.

Testing HelloSign callbacks locally

The callback url must be a secure, public url. in the case of testing locallly, you'd need to build a tunnel from a public url to your local host, and use such url as the callback url. there are several tools out there that can help to achieve this, my personal favorite is 'ngrok'. steps to set it up can be found on their site: https://ngrok.com/docs.

once it's up and running, you will simply need to use the public url given by the tool and use it as the callback url, it will "forward" the traffic to your local host and you will be able to launch what's behind it.

Resources
Questions?

Hit me up at [email protected]!

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.