{"id":17402296,"url":"https://github.com/qfox/megaplanjs","last_synced_at":"2025-04-15T18:24:36.105Z","repository":{"id":6704980,"uuid":"7950476","full_name":"qfox/megaplanjs","owner":"qfox","description":":airplane: NodeJS Megaplan API","archived":false,"fork":false,"pushed_at":"2023-03-02T09:15:24.000Z","size":104,"stargazers_count":16,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T14:50:30.520Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-02-01T02:43:58.000Z","updated_at":"2022-12-19T05:01:21.000Z","dependencies_parsed_at":"2024-06-21T19:20:42.895Z","dependency_job_id":"4a888f9c-5826-4148-a72d-c463f6dd3e0c","html_url":"https://github.com/qfox/megaplanjs","commit_stats":null,"previous_names":["zxqfox/megaplanjs"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fmegaplanjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fmegaplanjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fmegaplanjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Fmegaplanjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qfox","download_url":"https://codeload.github.com/qfox/megaplanjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249127168,"owners_count":21216932,"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-10-16T17:25:42.251Z","updated_at":"2025-04-15T18:24:36.084Z","avatar_url":"https://github.com/qfox.png","language":"JavaScript","readme":"Megaplan client module for NodeJS\n---------------------------------\n\nA NodeJS library to work with megaplan.ru API ver. 1\n\nProvides a class that implements Megaplan authentication and request signing.\nOnly supports POST requests. The complete API documentation is at:\nhttps://dev.megaplan.ru/api/index.html\n\nAt first you need to install library\n\n```sh\nnpm install megaplanjs --save\n```\n\nYou can generate documentaion with commands:\n\n```sh\nnpm install\nnpm run docs\n```\n\nAuthorization\n=============\n\nTo authorize using a password:\n\n```js\nvar megaplan = require ('megaplanjs');\nvar client = new megaplan.Client('my.megaplan.ru').auth('me', 'pass');\nclient.on('auth', function (res, err) {\n    // store res.access_id, res.secret_key if you need these (see below)\n    console.log('authenticated', res, err);\n\n    client.tasks().send(function (tasks) {\n        console.log(tasks); // a lot of results\n    }, function (err) {\n        console.log(err);\n    });\n});\n```\n\nTo authorize using tokens:\n\n```js\nvar megaplan = require ('megaplanjs');\nvar client = new megaplan.Client('xyz.megaplan.ru', access_id, secret_key);\nclient.tasks().send(function (tasks) {\n    console.log(tasks); // still a lot of results\n}, function (err) {\n    console.log(err);\n});\n```\n\nTo authorize using one-time-key:\n\n```js\nvar megaplan = require ('megaplanjs');\nvar client = new megaplan.Client('xyz.megaplan.ru').auth('', '', '4gih4y4gih4yH77QebicH77Qebic');\nclient.tasks().send(function (tasks) {\n    console.log(tasks); // still a lot of results\n}, function (err) {\n    console.log(err);\n});\n```\n\nUsage\n=====\n\n```js\nvar megaplan = require(\"megaplanjs\");\n// SET here your megaplan URL, login and password\nvar client = new megaplan.Client(\"my.megaplan.ru\").auth(\"me\", \"pass\");\n\nclient.on(\"auth\", function(res, err) {\n  // show user's tasks\n  client.tasks({ folder: \"owner\" }).send(\n    function(tasks) {\n      console.log(tasks);\n    },\n    function(err) {\n      console.log(err);\n    }\n  );\n});\n```\n\nLook `index.js` for more examples. It's pretty simple to use\n\nCopylefts\n=========\n\nCode originally written by Alexej Yaroshevich \u003czxqfox@gmail.com\u003e under the MIT License.\n\nEnjoy!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqfox%2Fmegaplanjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqfox%2Fmegaplanjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqfox%2Fmegaplanjs/lists"}