| 1 |
This example shows how to use the oauth package with Twitter from a command line 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 command line example with OOB authorization: |
| 10 |
|
| 11 |
1. $ go run main.go |