Giter Site home page Giter Site logo

seco / arduino-twitter-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from witnessmenow/arduino-twitter-api

0.0 1.0 0.0 17 KB

Library for using the twitter api directly on an esp8266 using the Arduino IDE

License: GNU General Public License v2.0

Shell 1.22% C++ 98.78%

arduino-twitter-api's Introduction

arduino-twitter-api

A wrapper for the Twitter API for Arduino (works on ESP8266)

WORK IN PROGRESS - API call works if you set the bearer token directly. It should be able to generate the bearer Credentials from the consumer key and secret and make a request to get the token but its not working at the moment.

In the api FAQ twitter mentions that they do not expire bearer tokens, so once you do not generate a new one with the same Credentials it should continue working

Getting API Key & Secret

  • Go to the following URL - sign in if you havent already.
  • Fill in the fields, For website you can enter any webpage (e.g. http://google.com), and create your app
  • Then click on the Keys & Tokens tab. Your Consumer Key and Consumer Secret will be there.

Getting Bearer Token

I am hoping to make this a little more simple going forward, as we should be able to do this on the board directly, but here they are for now :)

  • Get curl on your machine (Windows: try this it shoud already be installed on mac and linux)
  • Make the following request using the key and token from the above section
curl -u "CONSUMER_KEY:CONSUMER_SECRET" --data 'grant_type=client_credentials' 'https://api.twitter.com/oauth2/token'
  • The response will contain a bearer token (it is the big long one!), use this with the setBearerToken as shown in the example.

arduino-twitter-api's People

Contributors

witnessmenow avatar

Watchers

 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.