File: README.markdown

package info (click to toggle)
golang-github-gomodule-oauth1 0.0~git20181215.9a59ed3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 260 kB
  • sloc: makefile: 3
file content (13 lines) | stat: -rw-r--r-- 485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
This example shows how to use the oauth package with [Discogs](http://www.discogs.com/developers/).

The examples require a configuration file containing a consumer key and secret:

1. [Create an application](https://www.discogs.com/settings/developers).
2. $ cp config.json.example config.json.
3. Edit config.json to include your consumer key and secret from step 1.


To run the web example:

1. $ go run main.go
2. Go to http://127.0.0.1:8080/ in a browser to try the application.