{"id":17377380,"url":"https://github.com/pradel/node-social-api","last_synced_at":"2025-04-15T08:37:38.666Z","repository":{"id":57095400,"uuid":"67526631","full_name":"pradel/node-social-api","owner":"pradel","description":"Social api client for node that support promises","archived":false,"fork":false,"pushed_at":"2016-12-06T16:58:57.000Z","size":1333,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T18:11:23.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pradel.github.io/node-social-api","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/pradel.png","metadata":{"files":{"readme":"README.md","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":"2016-09-06T16:30:02.000Z","updated_at":"2019-04-25T04:46:49.000Z","dependencies_parsed_at":"2022-08-22T23:10:29.027Z","dependency_job_id":null,"html_url":"https://github.com/pradel/node-social-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fnode-social-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fnode-social-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fnode-social-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fnode-social-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradel","download_url":"https://codeload.github.com/pradel/node-social-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543849,"owners_count":21121838,"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-16T05:05:45.832Z","updated_at":"2025-04-15T08:37:38.643Z","avatar_url":"https://github.com/pradel.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/node-social-api.svg)](https://badge.fury.io/js/node-social-api)\n[![Build Status](https://travis-ci.org/pradel/node-social-api.svg?branch=master)](https://travis-ci.org/pradel/node-social-api)\n[![Coverage Status](https://coveralls.io/repos/github/pradel/node-social-api/badge.svg?branch=master)](https://coveralls.io/github/pradel/node-social-api?branch=master)\n[![Dependency Status](https://david-dm.org/pradel/node-social-api.svg)](https://david-dm.org/pradel/node-social-api)\n[![devDependency Status](https://david-dm.org/pradel/node-social-api/dev-status.svg)](https://david-dm.org/pradel/node-social-api#info=devDependencies)\n\n# node-social-api\n\n[Documentation](https://pradel.github.io/node-social-api)\n\n[Examples](https://github.com/pradel/node-social-api/tree/master/examples)\n\nSocial api client for node that support promises and callback.\nInclude:\n* [Twitter](https://pradel.github.io/node-social-api/#twitter)\n* [Instagram](https://pradel.github.io/node-social-api/#instagram)\n* [Facebook](https://pradel.github.io/node-social-api/#facebook)\n* [Tumblr](https://pradel.github.io/node-social-api/#tumblr)\n* [Github](https://pradel.github.io/node-social-api/#github)\n\n## Install\n\n`npm install --save node-social-api`\n\n## Usage\n\n```javascript\nimport { Instagram, Twitter, Facebook, Tumblr } from 'node-social-api';\n\n// Instagram\nconst instagram = new Instagram({\n  clientId: 'your-client-id',\n  accessToken: 'user-access-token',\n});\n\n// Some get query with promise\ninstagram.get('users/self').then((data) =\u003e {\n  console.log(data);\n});\n\n// Some get query with callback\ninstagram.get('users/self', (err, data) =\u003e {\n  console.log(data);\n});\n\n// Create a new stream and only receive new messages\nconst stream = instagram.stream('tags/:tag-name/media/recent');\n\nstream.on('message', (message) =\u003e {\n  console.log(message);\n});\n\n// Twitter\nconst twitter = new Twitter({\n  consumerKey: 'your-consumer-key',\n  consumerSecret: 'your-consumer-secret',\n  accessToken: 'your-access-token',\n  accessTokenSecret: 'your-access-token-secret',\n});\n\n// Some get query\ntwitter.get('media/recent').then((data) =\u003e {\n  console.log(data);\n});\n\n// Facebook\nconst facebook = new Facebook({\n  appId: 'your-app-id',\n  appSecret: 'your-app-secret',\n});\n\n// Some get query\nfacebook.get(':some-id').then((data) =\u003e {\n  console.log(data);\n});\n\n// Tumblr\nconst tumblr = new Tumblr({\n  consumerKey: 'your-consumer-key',\n});\n\n// Some get query\ntumblr.get('blog/scipsy.tumblr.com/info').then((data) =\u003e {\n  console.log(data);\n});\n\n// Github\nconst github = new Github({\n  accessToken: 'your-access-token',\n});\n\n// Some get query\ngithub.get(':some-github-route').then((data) =\u003e {\n  console.log(data);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fnode-social-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradel%2Fnode-social-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fnode-social-api/lists"}