Skip to content

Support validation and sending alert #12

Merged
merged 0 commits into from Sep 18, 2014

3 participants

@sntran
sntran commented Nov 19, 2013

The bundle file can now have a validate function, which when returns false
will fail the response.

SPAS also sends SMS alert whenever a bundle fails requesting the API, or the
response fails validation.

SMS alert uses Twilio and the credentials are defined in config.json:

{
  "development": {
    "authentication": {
      "twilio": {
        "sid": "AC...",
        "authToken": "xxx",
        "number": "+18327727533", // Registered Twilio number, +1 832 SPAS 533
        "recipient": "+1xxxxxxxxxx" // Use verified outbound number associated with the number above if using trial account.
      }
    }
  }
}
@jlafitte

I'd personally rather receive emails than sms...

@sntran
@dtex dtex merged commit 5b31bbd into dtex:master Sep 18, 2014

1 check failed

Details default The Travis CI build could not complete due to an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.