{"id":19956415,"url":"https://github.com/drudge/node-sosumi","last_synced_at":"2025-05-03T20:32:03.699Z","repository":{"id":1026086,"uuid":"854122","full_name":"drudge/node-sosumi","owner":"drudge","description":"Find My Phone support for node.js","archived":false,"fork":false,"pushed_at":"2022-04-07T03:31:28.000Z","size":12,"stargazers_count":36,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T21:59:38.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drudge.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-22T01:30:56.000Z","updated_at":"2025-02-07T10:14:18.000Z","dependencies_parsed_at":"2022-07-18T16:28:41.080Z","dependency_job_id":null,"html_url":"https://github.com/drudge/node-sosumi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-sosumi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-sosumi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-sosumi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-sosumi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drudge","download_url":"https://codeload.github.com/drudge/node-sosumi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252252977,"owners_count":21718768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:34:13.045Z","updated_at":"2025-05-03T20:31:58.691Z","avatar_url":"https://github.com/drudge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Susumi - Use Find My Phone services from your node.js apps\n\nFind My Phone support for Nodejs. This allows you to programmatically retrieve your phone's current location and push messages (and an optional alarm) to the remote device, or even remotely lock the device.\n\nThis is essentially a port of Tyler Hall's [PHP Sosumi Class](http://github.com/tylerhall/sosumi).\n\n## Installation\n\n  Install the [npm package manager for nodejs](http://github.com/isaacs/npm)\n  and run:\n  \n      $ npm install sosumi\n\n## Examples\n\nEvent handling is optional, but sexy time.\n\n    var util = require('util'),\n        Sosumi = require('sosumi'),\n        fmiService = new Sosumi('stevejobs', 'jizzmodo');\n    \n    // by default, devices are fetched when you create a new Sosumi object, a 'devices'\n    // event is emitted on successful fetch. At this point, fmiService.devices is populated\n    // as well.\n    fmiService.on('devices', function (devices) {\n        util.puts('Got our devices: ' + util.inspect(devices));\n \n        if (devices != null) {\n            // Blast a message out to all your registered devices\n            for (var i = 0; i \u003c devices.length; i++) {\n                fmiService.sendMessage('This is a test of the emergency broadcast system.', false, i, 'Important Message');\n                \n                // We can grab an event when a specific message has been sent\n                fmiService.on('messageSent', function (content) {\n                    util.puts('Sent the message: ' + util.inspect(content));\n                });\n           }\n        }\n    });\n    \n    // if something goes wrong, an error event is emitted with a description of the problem.\n    fmiService.on('error', function(err) {\n        throw err;\n    });\n\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2010 Nicholas Penree \u003cdrudge@conceited.net\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-sosumi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrudge%2Fnode-sosumi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-sosumi/lists"}