Debian Codegraph @

examples/twitter/README.markdown

raw
1 This example shows how to use the oauth package with Twitter from a web application.
2
3 The examples require a configuration file containing a consumer key and secret:
4
5 1. Register an application at https://dev.twitter.com/apps/new (Note: create a callback url for the app)
6 2. $ cp config.json.example config.json.
7 3. Edit config.json to include your Twitter consumer key and consumer secret from step 1.
8
9 To run the example:
10
11 1. $ go run main.go
12 2. Go to http://127.0.0.1:8080/ in a browser to try the application.