Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.25 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.25 KB

Golang library for the Twitter 1.1 API

This project aims to be a Go library for the Twitter 1.1 API.

Want to help?

Register your APP at https://dev.twitter.com/apps to get your Key and Secret.

Leave "Callback URL" blank, you don't need it for the command line tests.

# Creating a dev directory
% mkdir -p $GOPATH/src/github.com/astrata
% cd $GOPATH/src/github.com/astrata
% git clone git://github.com/astrata/twitter.git twitter
% cd twitter

# This may require you some additional work.
% go build

# Install the twitter command
% go install github.com/astrata/twitter/cli/twitter

# This will ask you for your PIN and will give you your user credentials.
% twitter -key AAAA -secret BBBB

# Create a settings.yaml file with your app keys and user credentials.
% cat settings.yaml
twitter:
  app:
    key: ZerGYGhZytwFrsaR4xAse
    secret: PCadfTgdxAsercATs4Asr5dAx
  user:
    token: 12345678-rOaRx4saKTTuNJlhiuI7ehumzOV5xSp6dOtlk1Rs
    secret: fmt5pMcEbXer4DmmRFls7KesjXcQ4utgqrTf0KcR8

# Run the tests.
% go test

# Hack what you need and send pull requests :-).
vim main.go

This is not production ready.

Read the docs online at http://go.pkgdoc.org/github.com/astrata/twitter