{"_id":"typetalk-js","_rev":"27-75785d9331559022d2c3a8f12f779253","name":"typetalk-js","description":"JavaScript library for Typetalk","dist-tags":{"latest":"0.2.0","0.2.0":"0.2.0"},"versions":{"0.1.1":{"name":"typetalk-js","title":"typetalk-js","description":"JavaScript library for Typetalk","version":"0.1.1","main":"typetalk.js","homepage":"https://github.com/shoito/typetalk-js","author":{"name":"shoito","url":"https://github.com/shoito/typetalk-js/blob/master/AUTHORS.txt"},"repository":{"type":"git","url":"https://github.com/shoito/typetalk-js.git"},"keywords":["typetalk","nulab","client","javascript","library"],"bugs":{"url":"https://github.com/shoito/typetalk-js/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shoito/typetalk-js/blob/master/LICENSE"}],"dependencies":{"bluebird":"~1.2.4","xmlhttprequest":"~1.6.0"},"devDependencies":{"grunt":"~0.4.4","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.4.0","load-grunt-tasks":"~0.4.0","matchdep":"~0.3.0"},"scripts":{"build":"npm install && grunt","test":"grunt"},"_id":"typetalk-js@0.1.1","dist":{"shasum":"dd5b9590eab230d6832081817fc02bb8205466bd","tarball":"https://registry.npmjs.org/typetalk-js/-/typetalk-js-0.1.1.tgz","integrity":"sha512-tkoudiNb7CpTsaM8DX8ZjX/xGEJwXA4hfpD6w1o5xqHvN4O4uTvWbnujdG60EmQsmaRjREfkT4oCkSnyuZZE3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbOfQeTdakmAvm/ZN+YBF2r4O+Fi4oNiaQL3I8dZHX1AiEAu/JiyRnTqmUTPT+zGKR3gJnwhnLOJdpROxu7vZBkUdc="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"shoito","email":"infy2c@gmail.com"},"maintainers":[{"name":"shoito","email":"infy2c@gmail.com"}]},"0.1.2":{"name":"typetalk-js","title":"typetalk-js","description":"JavaScript library for Typetalk","version":"0.1.2","main":"typetalk.js","homepage":"https://github.com/shoito/typetalk-js","author":{"name":"shoito","url":"https://github.com/shoito/typetalk-js/blob/master/AUTHORS.txt"},"repository":{"type":"git","url":"https://github.com/shoito/typetalk-js.git"},"keywords":["typetalk","nulab","client","javascript","library"],"bugs":{"url":"https://github.com/shoito/typetalk-js/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shoito/typetalk-js/blob/master/LICENSE"}],"dependencies":{"bluebird":"~1.2.4","xmlhttprequest":"~1.6.0"},"devDependencies":{"grunt":"~0.4.4","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.4.0","load-grunt-tasks":"~0.4.0","matchdep":"~0.3.0"},"scripts":{"build":"npm install && grunt","test":"grunt"},"_id":"typetalk-js@0.1.2","dist":{"shasum":"e52889dd32f5ee74567b21a208b2c50f7477948b","tarball":"https://registry.npmjs.org/typetalk-js/-/typetalk-js-0.1.2.tgz","integrity":"sha512-MHTjh5r9vFe6SiB4UtEtnvAvw+2YaItmBQH6TKlFzPxcFlKl6hE0cgDXANb5Vbtut2I7jgQWoZ1p3vqQHvCYKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIATdphP8+bhvfWmY4XvcB8fJOB4QBrvLVjkZMV95tqGjAiBzSqhxq1Yp+t8vgJHRL3KODJBujE7Hbvx+we+R1R5I8Q=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"shoito","email":"infy2c@gmail.com"},"maintainers":[{"name":"shoito","email":"infy2c@gmail.com"}]},"0.1.3":{"name":"typetalk-js","title":"typetalk-js","description":"JavaScript library for Typetalk","version":"0.1.3","main":"typetalk.js","homepage":"https://github.com/shoito/typetalk-js","author":{"name":"shoito","url":"https://github.com/shoito/typetalk-js/blob/master/AUTHORS.txt"},"repository":{"type":"git","url":"https://github.com/shoito/typetalk-js.git"},"keywords":["typetalk","nulab","client","javascript","library"],"bugs":{"url":"https://github.com/shoito/typetalk-js/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shoito/typetalk-js/blob/master/LICENSE"}],"dependencies":{"bluebird":"~1.2.4","xmlhttprequest":"~1.6.0"},"devDependencies":{"grunt":"~0.4.4","grunt-contrib-clean":"~0.5.0","grunt-jsdoc":"~0.5.4","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.4.0","load-grunt-tasks":"~0.4.0","matchdep":"~0.3.0","jsdoc":"~3.2.2"},"scripts":{"build":"npm install && grunt","test":"grunt"},"_id":"typetalk-js@0.1.3","dist":{"shasum":"404e30cb06f623d6160add91ef3912159646ee50","tarball":"https://registry.npmjs.org/typetalk-js/-/typetalk-js-0.1.3.tgz","integrity":"sha512-X/nBcDFvH1SbFEpt3AyTOC4KD/r2PUC2pz01pUpBa6wFqeA6KBPW2svJj5W3vGHcYWNd9NOKffPCC0TGBI2TmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGFd6PlQkTneAPIGe+IJMxevsRxS1pP9TWE7VRNJBmQgIgQgD00xQaGF8QknvM7C6CQMLo+3Tr+4xUXuFsRAdmFMg="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"shoito","email":"infy2c@gmail.com"},"maintainers":[{"name":"shoito","email":"infy2c@gmail.com"}]},"0.2.0":{"name":"typetalk-js","title":"typetalk-js","description":"JavaScript library for Typetalk","version":"0.2.0","main":"typetalk.js","homepage":"https://github.com/shoito/typetalk-js","author":{"name":"shoito","url":"https://github.com/shoito/typetalk-js/blob/master/AUTHORS.txt"},"repository":{"type":"git","url":"https://github.com/shoito/typetalk-js.git"},"keywords":["typetalk","nulab","client","javascript","library"],"bugs":{"url":"https://github.com/shoito/typetalk-js/issues"},"licenses":[{"type":"MIT","url":"https://github.com/shoito/typetalk-js/blob/master/LICENSE"}],"dependencies":{"promise":"~5.0.0","xmlhttprequest":"~1.6.0"},"devDependencies":{"grunt":"~0.4.5","grunt-contrib-clean":"~0.6.0","grunt-jsdoc":"~0.5.7","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.5.1","load-grunt-tasks":"~0.6.0","matchdep":"~0.3.0","jsdoc":"~3.3.0-alpha9"},"scripts":{"build":"npm install && grunt","test":"grunt"},"_id":"typetalk-js@0.2.0","dist":{"shasum":"2a78917d4f82ecaf7289753e7b2879062c839013","tarball":"https://registry.npmjs.org/typetalk-js/-/typetalk-js-0.2.0.tgz","integrity":"sha512-NFarsV3/rqrxq2qychRtRb3o99eB0JdKEVN5xWHFIsAy5wyesMlxuOrdFDDW1XHBG3Y2NaM9lIhBL6ep107gWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIdkmK0dTOCVufOB8DRCBToOoOmSfb2AqDm0mxlXigdAiEA0SMQ8bGuJc9C6OopBevPYIuQBPiL57gANRqEXT7C41U="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"shoito","email":"infy2c@gmail.com"},"maintainers":[{"name":"shoito","email":"infy2c@gmail.com"}]}},"readme":"JavaScript client library for Typetalk\n======================\n\n[typetalk-js](https://github.com/shoito/typetalk-js) aims to provide a complete, asynchronous client library for the [Typetalk API](http://developers.typetalk.in/api.html).\n\nFor API details and how to use promises, see the [JavaScript Promises](http://www.html5rocks.com/en/tutorials/es6/promises/).\n\ntypetalk-js is an **unofficial** library.\n\n## Typetalk\nTypetalk - http://www.typetalk.in\n\n> Typetalk: Team discussions and collaboration through instant messaging.\n\n> Typetalk brings fun and ease to team discussions through instant messaging on desktop and mobile devices.\n\n## Requirements\n\nSupport Promises\n\n[Can I use Promises?](http://caniuse.com/promises)\n\n### Browser\n\nUse a polyfill script tag:\n\n    <script src=\"https://www.promisejs.org/polyfills/promise-5.0.0.min.js\"></script>\n\nThe global variable Promise becomes available after the above script tag.\n\n## Installation\n\n### Node.js\n\n    npm install typetalk-js --save\n\n### Browser\n\n    bower install typetalk-js --save\n\nor clone the repository or just copy the files `typetalk.js` or `typetalk.min.js` to your server.\n\nand then include it in your pages with `<script src=\"typetalk.min.js\"></script>`\n\n## Getting started\n\nSee also \n\n- [Typetalk for Developers](https://developer.nulab-inc.com/docs/typetalk)\n- [typetalk-js API documentation](http://shoito.github.io/typetalk-js/Typetalk.html)\n\n### Setup (Client Credentials as Grant Type)\n\n    var Typetalk = require('typetalk');\n\n    var typetalk = new Typetalk({\n        'client_id': 'YOUR_CLIENT_ID__CLIENT_CREDENTIALS', \n        'client_secret': 'YOUR_CLIENT_SECRET__CLIENT_CREDENTIALS',\n        'scope': 'topic.read,topic.post,topic.write,topic.delete,my'\n    });\n\n### Setup (Authorization Code as Grant Type)\n\n    var typetalk = new Typetalk({\n        'client_id': 'YOUR_CLIENT_ID__AUTHORIZATION_CODE',\n        'client_secret': 'YOUR_CLIENT_SECRET__AUTHORIZATION_CODE',\n        'redirect_uri': 'https://YOUR_APP_DOMAIN/provider_cb',\n        'scope': 'topic.read,topic.post,topic.write,topic.delete,my'\n    });\n\n### Get access token using client credentials\n\n    typetalk.getAccessTokenUsingClientCredentials().then(function(data) {\n        typetalk.accessToken = data.access_token;\n        typetalk.refreshToken = data.refresh_token;\n    }, function(err) {\n        console.error(err);\n    });\n\n### Get my profile\n\n    typetalk.getMyProfile().then(function(profile) {\n        console.log(profile);\n    });\n\n### Get my topics\n\n    typetalk.getMyTopics().then(function(topics) {\n        console.log(topics);\n    });\n\n### Post message\n\n    typetalk.postMessage(1657, {'message': '@shoito Hellow World!'}).then(function(message) {\n        console.log(message);\n    });\n\n## Sample App using typetalk-js library\n\n- [Typetalk Notifications](https://github.com/shoito/typetalk-notifications)\n\n## See also\n\n- [Typetalk](http://www.typetalk.in)\n- [Typetalk for Developers](https://developer.nulab-inc.com/docs/typetalk/)\n- [JavaScript Promises: There and Back Again](http://www.html5rocks.com/en/tutorials/es6/promises/)\n- [Promise](https://www.promisejs.org/)\n\n## License\nMIT License - http://opensource.org/licenses/MIT\n","maintainers":[{"name":"shoito","email":"infy2c@gmail.com"}],"time":{"modified":"2022-06-28T02:05:10.640Z","created":"2014-05-01T17:33:19.809Z","0.1.1":"2014-05-01T17:33:21.532Z","0.1.2":"2014-05-01T17:48:24.296Z","0.1.3":"2014-05-06T14:46:13.045Z","0.2.0":"2014-08-30T16:37:50.383Z"},"readmeFilename":"README.md","homepage":"https://github.com/shoito/typetalk-js","keywords":["typetalk","nulab","client","javascript","library"],"repository":{"type":"git","url":"https://github.com/shoito/typetalk-js.git"},"author":{"name":"shoito","url":"https://github.com/shoito/typetalk-js/blob/master/AUTHORS.txt"},"bugs":{"url":"https://github.com/shoito/typetalk-js/issues"},"users":{"shoito":true}}