zonito / subscribe

Subscribe service is to extract your application's email service and host it separately. An API using google end points is to interact with your subscribe service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subscribe

Subscribe service is to extract your application's email service and host it separately. An API using Google Cloud Endpoints is to interact with your subscribe service. Along with sending emails it will also handle requests for unsubscription.

Setup Instructions

  1. Make sure to have the App Engine SDK for Python installed, version 1.7.5 or higher.
  2. Update the value of application in app.yaml from your-app-id to the app ID you have registered in the App Engine admin console and would like to use to host your instance of this sample.
  3. Run the application, and ensure it's running by visiting your local server's admin console (by default localhost:8080/_ah/admin.)
  4. Test your Endpoints by visiting the Google APIs Explorer: localhost:8080/_ah/api/explorer
  5. Play with your demo instance by visiting localhost:8080/demo

Command line

curl -H 'content-type:application/json' \
     -d '{"email_addresses":[{"email_address": "test1@example.com"},{"email_address": "test2@example.com"}],"body": "<h1>Hello World</h1>","private_key": "your_application_specific_private_key","sender": "authorize@sender.com", "subject": "SUBJECT", "async": true}' \
     http://localhost:8080/_ah/api/subscribe/v1/send

Licensing

Subscribe is licensed under the terms of the Apache License, version 2.0.

Copyright 2014 Love Sharma.

Project source code is available at Github. Please report bugs and file enhancement requests at the issue tracker.

Why Subscribe?

  • Avoid handling requests from different sources. Such as Android, IOS, Javascript, etc. 8
  • Handles multiple applications. Just add your application's specific private key. It will handle all your unsubscriptions application wise.
  • Handles multiple sender depending on your type of mails. Add all sender's email address in your appengine application.
  • No need to handle your unsubscriptions while sending emails to your customers / users. Service already taking care of it. Append's unsubscribe link along with given body.

About

Subscribe service is to extract your application's email service and host it separately. An API using google end points is to interact with your subscribe service.

License:Apache License 2.0


Languages

Language:Java 81.2%Language:Python 18.8%