Skip to content
Small Ink program to send tweets using the Twitter JSON API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
hmac.ink
json.ink
std.ink
str.ink
tweet.ink

README.md

send-tweet 🐦

send-tweet is a repository for a small Ink program to send Tweets using the Twitter JSON API. This project also required Ink libraries for SHA1 and HMAC-SHA1 algorithms, percent-encoding URI strings, and base64 conversion, which are also included as library functions in the project.

Authorization

For the send-tweet functionality to work, you'll need to (1) be registered as a Twitter developer application, and (2) have the requisite OAuth 1.0 tokens to authenticate as a given user. You'll need four keys to place inside tweet.ink:

  • CONSUMERKEY: The public key portion of the Twitter API token
  • CONSUMERSECRET: The private key portion of the Twitter API token
  • OAUTHTOKEN: OAuth public key
  • OAUTHSECRET: OAuth secret / private key

You can generate and find these keys at developer.twitter.com.

Usage

You can call the program with ink tweet.ink if you have Ink installed. If not, you can install or download the binary at github.com/thesephist/ink.

You can’t perform that action at this time.