<commit_before>dpd-pushnotifications
=======

A very simple Deployd Resource for connectivity to the Google Cloud Messaging (GCM) and Apple Push Notification Service (APNs)

Include in your package.json like
<pre>
  "dependencies": {
    "dpd-pushnotifications": "git+ssh://git@github.com:ozzroach/dpd-pushnotifications.git"
  }
</pre>
then do
<pre>
npm install
</pre>
Usage in a Deployd-Event-Handler:
<pre>
dpd.pushnotifications.post({
		registrationIds: ["...", "..."],
		title: "...",
		message: "...",
		msgcnt: "...",
		soundname: "...",
		collapseKey: "...",
		delayWhileIdle: true,
		timeToLive: 4000
	},
	function (err, results) {
    	console.log(results);
	}
)
</pre><commit_msg>README updated<commit_after>dpd-pushnotifications
=======

A very simple Deployd Resource for connectivity to the Google Cloud Messaging (GCM) and Apple Push Notification Service (APNs)

Include in your package.json like
<pre>
  "dependencies": {
    "dpd-pushnotifications": "git+ssh://git@github.com:ozzroach/dpd-pushnotifications.git"
  }
</pre>
then do
<pre>
npm install
</pre>
Usage in a Deployd-Event-Handler:
For Android:
<pre>
dpd.pushnotifications.post({
		gcmRegistrationIds: ["...", "..."],
		title: "...",
		message: "...",
		msgcnt: "...",
		soundname: "...",
		collapseKey: "...",
		delayWhileIdle: true,
		timeToLive: 4000
	},
	function (err, results) {
    	console.log(results);
	}
)
</pre>
For iOS:
<pre>
dpd.pushnotifications.post({
		apnTokens: ["...", "..."],
		message: "...",
		msgcnt: "...",
		soundname: "...",
		timeToLive: 4000
	},
	function (err, results) {
    	console.log(results);
	}
)
</pre>
{'fraction_non_alphanumeric': 0.19083023543990088, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 3.627507163323782, 'pattern_counts': {'":': 4, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5638404', 'n_tokens_mistral': 630, 'n_tokens_neox': 582, 'n_words': 131}