Skip to content
All correspondence with speakers
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Comms
buildDocker
concourse
.gitattributes
.gitignore
Comms.sln
README.md
build.fsx
build.sh
copySecrets.sh
localBuildRun.sh
run.sh
setup.sh

README.md

Comms

The comms service has two endpoints, one for getting all correspondence and one for getting the last contact date for each thing contacted.

Last-contacted

Request format

Perform a HTTP GET request to [service-url:8080]/last-contacted

Response Format

{
    "email-address" : "last-contacted-date",
    ...
}

The date is in iso-8601 format.

Example response

{
    "bob.builder@cartoonconstructionslimited.tv" : "2004-01-30T05:00:01Z",
    "chris.smith@leaddeveloper.com" : "2016-02-17T15:51:15Z",
    "david.wybourn@superawesomegoodcode.co.uk" : "2016-03-07T12:45:04Z"
}

Correspondence

Request format Perform a HTTP GET request to [service-url:8080]/correspondence

Response Format

{
  "from"    : "sender-email-address"
  "to"      : "receiver-email-address"
  "date"    : "date of the message"
  "message" : "message sent"
}

The date is in iso-8601 format. The 'from' and 'to' fields may be set to 'Unknown' if we do not have an email address.

Example Response

{
  "from"    : "david@email.com"
  "to"      : "chris@email.com"
  "date"    : "2016-03-30T14:10:21Z"
  "message" : "Hi Chris, I would like to do a Talk"
}

Comms needs some secret information that is not checked in. This consists of secrets.config

Secrets file

The secrets.config file should contain:

<appSettings>
    <add key="AWSAccessKey" value="" />
    <add key="AWSSecretKey" value="" />
</appSettings>

Running on linux.

To run easily on linux for local development you need to

1. Edit the app.config file if required.
2. Place the secrets.config file mentioned in the section above at `../configs/Comms.secrets.config` (a folder called configs at the same level as the top level comms repository folder)
3. Run `./localBuildRun.sh`
You can’t perform that action at this time.