Giter Site home page Giter Site logo

commservice's Introduction

Build Status

DM Communication Microservice

Used for communications between Application and users

Tool can be moved to /usr/local/bin by sudo cp claritytools /usr/local/bin. After that you can run claritytools -h from the command line.

FYI the service queries an auth db for token and username. They are set with the headers. x-auth-token x-auth-user

If you have an issue setting this up reach out and I will post the demo SQL.

####Credentials Files

  1. Create the directory /etc/commservice/comconfig.yaml
  2. Inside of that directory creat the following file

comconfig.yaml

slack:
  token: (slack token)
  channel: (channel you want to post to by default)
mailgun:
  apiKey: (mailgun api key)
  domain: (mailgun domain)
  sender: (sender ex [email protected])
  SenderName: (sender name ex: Dark Matter IT Tech)
authdb:
  username: (DB Username)
  password: (DB Password)
  dbhost:   (db ip)
emaildb:
  username: (Email DB Username)
  password: (Email DB password)
  dbhost: (Email DB Host)

The following are the current post to URL's and the json to go with it.

:8080/api/comm/slack/message

{
"SlackMessage": "Hello All",
"Service": "slack"
}

:8080/api/comm/mailgun/message

{
"Subject": "Sale at Moxie!",
"Message": "Hello All",
"To": "[email protected]",
"Service": "MailGun"
}

:8080/api/comm/mailgun/multimessage

{
	"MailGunData": {
		"Subject": "Testing Multi", 
		"Message": "Here is the message!",
		"To": null, 
		"Service": "MailGunMulti"
	},
	"QueryField": "DatabaseColumn",
	"Condition": "ValueofColumn",
	"City": "null", 
	"State": "null",
	"Database": {
		"Database": "EmailDB.tbl_user_info"
	}
}

commservice's People

Contributors

dmevanct avatar

Watchers

 avatar  avatar  avatar

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.