Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 tech@darkamtterct.com)
  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": "evan.haston@darkmatterct.com",
"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"
	}
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages