smtp-callback-verification

command module
v0.0.0-...-8a5db81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2014 License: MIT Imports: 7 Imported by: 0

README

SMTP Callback Verification

A simple REST API service to verify email addresses. Using SMTP Callback Verification.

Usage

Make a request.

curl -i "http://localhost/verify/?email=paul@gmail.com"

Which generates the following response.

{
  "email": "paul@gmail.com",
  "isValid": true
}
Running it locally
  1. Build project with Go. go build
  2. Spin up server locally. PORT=8080 ./smtp-callback-verification Note that server port is read from the environment.
  3. Send a request. curl -i "http://localhost:8080/verify/?email=paul@gmail.com"
Deploy to Heroku
  1. Create a Heroku app with Go buildpack. heroku create -b https://github.com/kr/heroku-buildpack-go.git
  2. Deploy this app to Heroku. git push heroku master
  3. Send a request. curl -i "http://<YOUR_APP>.herokuap.com/verify/?email=paul@gmail.com"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/ant0ine/go-json-rest/rest
A quick and easy way to setup a RESTful JSON API
A quick and easy way to setup a RESTful JSON API
_workspace/src/github.com/ant0ine/go-json-rest/rest/test
Utility functions to help writing tests for a Go-Json-Rest app
Utility functions to help writing tests for a Go-Json-Rest app
_workspace/src/github.com/ant0ine/go-json-rest/rest/trie
Special Trie implementation for HTTP routing.
Special Trie implementation for HTTP routing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL