GithubHelp home page GithubHelp logo

leyart / twitter-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruyadorno/twitter-proxy

0.0 2.0 0.0 9 KB

:zap: Tiny twitter proxy

Home Page: https://www.npmjs.com/package/twitter-proxy

JavaScript 100.00%

twitter-proxy's Introduction

twitter-proxy NPM version

Tiny Twitter API proxy server

Allows you to make requests to the Twitter API from the comfort of your browser.

Install

npm install -g twitter-proxy

Getting started

  1. Create an app on https://dev.twitter.com โ€“ the URLs and name don't matter, you won't be using it to authenticate people

  2. Create a json configuration file, containing your consumer key and secret:

    {
      "consumerKey": "<paste consumer key here>",
      "consumerSecret": "<paste consumer secret here>"
    }
  3. Let's say we save it on ~/config.json

  4. Run the app using the saved config:

    $ twitter-proxy ~/config.json

You can now make requests to Twitter API URLs using http://localhost:7890.

Programmatic API

From your node app, just require this module as a function and call it using the config object as the only parameter:

var twitterProxyServer = require('twitter-proxy');
twitterProxyServer({
  consumerKey: '<paste consumer key here>',
  consumerSecret: '<paste consumer secret here>'
});

Configuration

The possible configuration properties, and its default values are:

{
  "consumerKey": "",
  "consumerSecret": "",
  "accessToken": "",
  "accessTokenSecret": "",
  "port": "7890"
}

License

MIT License

twitter-proxy's People

Contributors

ruyadorno avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.