GithubHelp home page GithubHelp logo

web5design / twitter-no-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from indexzero/twitter-no-backend

0.0 3.0 0.0 159 KB

A simple example of how to use Twitter without any backend.

License: MIT License

twitter-no-backend's Introduction

twitter-no-backend

A simple example of how to use Twitter without any backend.

Setting up your Twitter application.

  1. Go to http://dev.twitter.com
  2. Login to Twitter. We recommend that you use a test account for the assignment
  3. Create a new application by navigating to https://dev.twitter.com/apps/new once logged in.
  4. Click "Create a new application"
  5. Enter the following information in the form:
  1. Agree to the Terms, fill out the Captcha, and click "Create new Twitter application".
  2. Go back to https://dev.twitter.com/apps and click on the app you just created.
  3. Scroll to the bottom of the Application details page and click "Create my Access Token".
  4. Click on the "OAuth Tool" tab. This is where you will find:
  • Consumer key
  • Consumer secret
  • Access token
  • Access token secret

Setting up your Twitter application

Just open public/index.html in your browser (This has only been tested in Google Chrome).

  $ cd /path/to/twitter-no-backend/public
  $ open index.html

Passing credentials to your Twitter app

Once your HTTP server is running you will need to pass your Twitter credentials to the client-side Javascript application.

The following query parameters are valid:

  • consumer_key
  • consumer_secret
  • access_token
  • access_token_secret

e.g.

file://twitter-no-backend/public/index.html?consumer_key=YOUR_KEY&consumer_secret=YOUR_SECRET&access_token=YOUR_TOKEN&access_token_secret=YOUR_TOKEN_SECRET

Navigating to that in your browser will demonstrate a PROOF-OF-CONCEPT basic demo using codebird-js. The code is located in /public/js/main.js.

twitter-no-backend's People

Contributors

indexzero avatar

Watchers

JT5D avatar James Cloos 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.