Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

minhdanh/hellosign-demo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hellosign-demo-app

A demo app wrriten in Python for hellosign_python_sdk

How to use

1. Clone the source and install django

git clone git@github.com:minhdanh/hellosign-demo-app.git
cd hellosign-demo-app
pip install django=1.6

2. Edit settings

Copy settings.py.sample to settings.py in hellosign/. Then update the file with your own API_KEY and CLIENT_ID and SECRET. (You can get your API_KEY, CLIENT_ID, SECRET here: https://www.hellosign.com/home/myAccount#integrations).

If you're deploying the app on Heroku, you may want to keep the sample content and use Heroku environment variables instead.

3. Start the server

python manage.py runserver

Or just push the code to Heroku and you're all set!

Notice that in order for the app to run correctly, you need to register your HelloSign app with a valid callback url. If you want to deploy the app on localhost, you may want to use ngrok (https://ngrok.com) because localhost or 127.0.0.1 is not recognized as valid callback urls by HelloSign. Here's how:

  1. Download ngrok (https://ngrok.com/download) and extract the zip file you've just downloaded

  2. Open Terminal, navigate to the folder you've just extracted ngrok to, then run ./ngrok 8000. This will tell ngrok that you want to expose port 8000 to the Internet. This port is also the default port used when we start our app server (with python manage.py runserver). When ngrok starts, it registers a random url (such as http://6eb6eb98.ngrok.com) and then forward all traffic that reaches this url (port 80 for http or 443 for https) to your localhost on port (8000). What you need to do is to update your HelloSign settings for your app with this random url, so that the callbacks could be routed to your localhost.

  3. Use the random url above instead of http://localhost:8000 to test if the app is running correctly

About

A demo app wrriten in Python for hellosign_python_sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published