Speed up development with full-stack environments for every branch.

Learn More

Update Twitter status

467 Runs 1831 Views 432 Copies
Saved

Saved

sundip 66

sundip
published 5 years ago


  
  

Update twitter status

A code example written in node.js that sends a status update by the user. This code example makes use of the following:

  • express - a web framework module used to serve up static content and handle routes

  • request - a HTTP request client module used to make calls to Twitter's API

  • qs - a querystring parser used to encode JSON to querystring parameters

  • oauth - a library for interacting with OAuth 1.0, 1.0A 2 and Echo

Project contents

  • server.js - contains the node.js code used to send the status and image to Twitter

  • oauth.js - contains the functions used to complete OAuth flow for logging onto Twitter

  • index.html - initial html page loaded that displays Twitter login and form to enter status and upload image

  • package.json - holds various metadata relevant to the project such as identifying dependencies

Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).