{"id":21326237,"url":"https://github.com/masylum/twitter-js","last_synced_at":"2026-02-27T10:04:31.991Z","repository":{"id":1112382,"uuid":"981508","full_name":"masylum/twitter-js","owner":"masylum","description":"Easy peasy twitter client for connect","archived":false,"fork":false,"pushed_at":"2012-01-29T13:54:24.000Z","size":116,"stargazers_count":23,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-12T07:31:56.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/masylum/twitter-js","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/masylum.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}},"created_at":"2010-10-12T15:50:19.000Z","updated_at":"2020-01-29T19:08:38.000Z","dependencies_parsed_at":"2022-08-16T12:05:08.892Z","dependency_job_id":null,"html_url":"https://github.com/masylum/twitter-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masylum/twitter-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftwitter-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftwitter-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftwitter-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftwitter-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masylum","download_url":"https://codeload.github.com/masylum/twitter-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Ftwitter-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29890666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T09:48:51.284Z","status":"ssl_error","status_checked_at":"2026-02-27T09:48:43.992Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-21T21:08:53.462Z","updated_at":"2026-02-27T10:04:30.191Z","avatar_url":"https://github.com/masylum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitter-js\n\nEasy peasy twitter client for connect.\n\n``` bash\nnpm install twitter-js\n```\n\n## Usage\n\ntwitter-js has two methods.\n\n* `getAccesToken(req, res, callback)`: Uses oAuth module to retrieve the access_token\n* `apiCall(http_method, path, params, callback)`: Does a call to twitter API.\n\nParams must contain the token.\n\n## Example using express.js\n\n    var express = require('express');\n      , twitterClient = require('twitter-js')('yourKey', 'yourPass')\n      , app = express.createServer(\n          express.bodyParser()\n        , express.cookieParser()\n        , express.session({secret: 'yourSecret'})\n        );\n\n    app.get('/', function (req, res) {\n      twitterClient.getAccessToken(req, res, function (error, token) {\n        res.render('client', {token: token});\n      });\n    });\n\n    app.post('/message', function (req, res) {\n      twitterClient.apiCall('POST', '/statuses/update.json',\n        {token: {oauth_token_secret: req.param('oauth_token_secret'), oauth_token: req.param('oauth_token')}, status: req.param('message')},\n        function (error, result) {\n          res.render('done.jade');\n        }\n      );\n    });\n\n    app.listen(3003);\n\n\n## Test\n\n`twitter-js` is fully tested using [testosterone](https://github.com/masylum/testosterone)\n\n``` bash\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Ftwitter-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasylum%2Ftwitter-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Ftwitter-js/lists"}