-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
42 lines (42 loc) · 3.42 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"name": "gcm",
"description": "An interface to Google Cloud Messaging for Android (GCM) on Node.js",
"version": "1.0.1",
"author": {
"name": "Changshin Lee",
"email": "cslee@h2soft.kr"
},
"contributors": [
{
"name": "Changshin Lee",
"email": "cslee@h2soft.kr"
},
{
"name": "Hannes Gassert",
"url": "http://gassert.ch"
}
],
"keywords": [
"google",
"push",
"push notifications",
"android",
"gcm"
],
"main": "./lib/gcm.js",
"repository": {
"type": "git",
"url": "http://github.com/h2soft/node-gcm.git",
"web": "http://github.com/h2soft/node-gcm"
},
"engines": {
"node": ">= 0.8.0"
},
"dependencies": {
"retry": ">=0.6.0"
},
"readme": "node-gcm\r\n========\r\nAn interface for \"Google Cloud Messaging for Android\" on Node.js\r\n\r\n## Installation\r\n\r\nVia [npm][1]:\r\n\r\n $ npm install gcm\r\n\r\nAs a submodule of your project\r\n\r\n $ git submodule add http://github.com/h2soft/node-gcm.git gcm\r\n $ git submodule update --init\r\n\r\n## Usage\r\n\r\n var GCM = require('gcm').GCM;\r\n\r\n var apiKey = '';\r\n var gcm = new GCM(apiKey);\r\n\r\n var message = {\r\n registration_id: 'Device registration id', // required\r\n collapse_key: 'Collapse key', \r\n 'data.key1': 'value1',\r\n 'data.key2': 'value2'\r\n };\r\n \r\n gcm.send(message, function(err, messageId){\r\n if (err) {\r\n console.log(\"Something has gone wrong!\");\r\n } else {\r\n console.log(\"Sent with message ID: \", messageId);\r\n }\r\n });\r\n\r\nSee [GCM documentation][2] for details.\r\n\r\n## Credits\r\n\r\nWritten and maintained by [Changshin Lee][3].\r\nThanks to Yury Proshchenko for his great work on [node-c2dm][4], from which this project stems.\r\n\r\n## License\r\n\r\nThe MIT License\r\n\r\nCopyright (c) 2012 Changshin Lee (cslee@h2soft.kr)\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n[1]: http://github.com/isaacs/npm\r\n[2]: http://developer.android.com/guide/google/gcm/index.html\r\n[3]: mailto:cslee@h2soft.kr\r\n[4]: https://github.com/SpeCT/node-c2dm\r\n\r\n## Changelog\r\n\r\n1.0.1:\r\n\r\n - Merge pull request from https://github.com/h2soft/node-gcm/commit/3e38578985812931e361c78165d62fda30a30064 (thanks to @hannesgassert)\r\n\r\n\r\n1.0.0:\r\n\r\n - Initial release",
"readmeFilename": "README.md",
"_id": "gcm@1.0.1",
"_from": "gcm@1.0.1"
}