<commit_before># AeroGear Push Notification Message Sender

Service for sending push notification messages via AeroGear. See http://aerogear.org/docs/unifiedpush/push-message-format/ for more details

# Environment Variables

The following Environment variables are supported/required by this service:

* `AEROGEAR_SERVER_URL`: Required - The URL of the AeroGear instance to use - e.g.  `https://aerogear.rhcloud.com/ag-push/`
* `AEROGEAR_APPLICATION_ID`: Required - The Unique Application Id of the AeroGear app - e.g.  `12345678-1234-1234-1234-1234567890ab`
* `AEROGEAR_MASTER_SECRET`: Required - The Master Secret Key of the AeroGear app - e.g. `12345678-1234-1234-1234-1234567890ab`
* `AEROGEAR_TTL`: Optional - The Time to Live value for the submitted notification - default value = 3600


# Group Send Message API

# send [/send]

'Send Message' endpoint.

## send [POST]

'Send Message' endpoint.

+ Request (application/json)
    + Body
            {
              "message" : {
                "alert": "The message to send (REQUIRED)",
                "sound": "The sound to use on device when the message is received (OPTIONAL - default value = 'default')",
                "badge": "Numeric value for the badge to use (OPTIONAL - default value = 2)",
                "contentAvailable": "true|false - iOS specific argument to mark the payload as ‘content-available’ (OPTIONAL - default value = true),
                "actionCategory": "iOS8 feature for interactive notifications (OPTIONAL - omitted if absent)",
                "customKey": "some custom value (OPTIONAL - omitted if absent)",
                "anotherCustomKey":"some other custom value (OPTIONAL - omitted if absent)"
              }
            }

+ Response 200 (application/json)
    + Body
            {
              "status": "ok"
            }

+ Response 400 (application/json)
    + Body
            {
              "status": "error",
              "message": [
                {
                  "param": "The parameter which caused the validation error",
                  "msg": "The validation error message"
                }
                ...
              ]
            }<commit_msg>Fix missing quote in docs<commit_after># AeroGear Push Notification Message Sender

Service for sending push notification messages via AeroGear. See http://aerogear.org/docs/unifiedpush/push-message-format/ for more details

# Environment Variables

The following Environment variables are supported/required by this service:

* `AEROGEAR_SERVER_URL`: Required - The URL of the AeroGear instance to use - e.g.  `https://aerogear.rhcloud.com/ag-push/`
* `AEROGEAR_APPLICATION_ID`: Required - The Unique Application Id of the AeroGear app - e.g.  `12345678-1234-1234-1234-1234567890ab`
* `AEROGEAR_MASTER_SECRET`: Required - The Master Secret Key of the AeroGear app - e.g. `12345678-1234-1234-1234-1234567890ab`
* `AEROGEAR_TTL`: Optional - The Time to Live value for the submitted notification - default value = 3600


# Group Send Message API

# send [/send]

'Send Message' endpoint.

## send [POST]

'Send Message' endpoint.

+ Request (application/json)
    + Body
            {
              "message" : {
                "alert": "The message to send (REQUIRED)",
                "sound": "The sound to use on device when the message is received (OPTIONAL - default value = 'default')",
                "badge": "Numeric value for the badge to use (OPTIONAL - default value = 2)",
                "contentAvailable": "true|false - iOS specific argument to mark the payload as ‘content-available’ (OPTIONAL - default value = true)",
                "actionCategory": "iOS8 feature for interactive notifications (OPTIONAL - omitted if absent)",
                "customKey": "some custom value (OPTIONAL - omitted if absent)",
                "anotherCustomKey":"some other custom value (OPTIONAL - omitted if absent)"
              }
            }

+ Response 200 (application/json)
    + Body
            {
              "status": "ok"
            }

+ Response 400 (application/json)
    + Body
            {
              "status": "error",
              "message": [
                {
                  "param": "The parameter which caused the validation error",
                  "msg": "The validation error message"
                }
                ...
              ]
            }
{'fraction_non_alphanumeric': 0.09805714285714286, 'fraction_numerical': 0.032914285714285715, 'mean_word_length': 2.2011704462326263, 'pattern_counts': {'":': 24, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3034058', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1161, 'n_words': 402}