Skip to content

cmpaul/jellosign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java + hellosign = jellosign

When trying to figure out an API or a new piece of code, sometimes seeing it in action is the best way to learn how it works.

This project contains some JSPs that demonstrate how to use the official HelloSign Java SDK to add document signing, requesting, and template creation to your website.

Make it go!

To run this demo locally, you'll need git, maven, java, and ngrok.

  1. Start ngrok to create a tunnel to your localhost, specifying a subdomain (replace <YOUR_SUBDOMAIN> with the subdomain of your choosing) and port 8080:

    ngrok http -subdomain=<YOUR_SUBDOMAIN> 8080
    
  2. Create an API app configuration and enter your app details:

    1. Associated domain name: ngrok.io
    2. Event callback url: https://<YOUR_SUBDOMAIN>.ngrok.io/hello
    3. (Optional) OAuth callback url: https://<YOUR_SUBDOMAIN>.ngrok.io/oauthDemoCallback.jsp
  3. Fork, then clone this repository.

  4. Copy web.properties.sample to src/test/webapp/WEB-INF/web.properties

  5. Edit web.properties and enter your HelloSign API key, API app client ID, and client secret (if you enabled OAuth).

  6. Start a Jetty container using the maven command:

    mvn -Dorg.slf4j.simpleLogger.defaultLogLevel=debug jetty:run
    
  7. Open a web browser and point it to: http://<YOUR_SUBDOMAIN>.ngrok.io

  8. Go wild!

Handling callback events

Take a look at ExampleCallbackServlet.java to see an example of handling callback events in Java. This servlet will be initialized when jetty starts and is configured in web.xml.

License

The MIT License (MIT)

Copyright (c) 2015 hellosign.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

A Java web app that integrates with the HelloSign API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published