• Stars
    star
    105
  • Rank 326,352 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created over 10 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

discogs-oauth-example was created to provide a very basic but functioning example of how a developer may utilize the python oauth2 library to download images and make authenticated calls against the Discogs API.

OAuth and Discogs

The discogs-oauth-example repo was created to provide a very basic but functioning example of how a developer may utilize the python oauth2 library to download images and make authenticated calls against the Discogs API.

Changes or suggestions are welcomed. Please log an issue or pull request via github.

See https://github.com/jesseward/discogs-oauth-example

Requirements

  • The python oauth2 library (pip install oauth2).
  • 5 minutes of your time.
  • A discogs.com user account

Note The discogs team recently deprecated their Python Discogs-Client library. The Python3 Discogs Client was recently forked in order to continue support for Python developers.

OAuth in a nutshell

  1. Obtain consumer keys : The application developer registers their new application at https://www.discogs.com/settings/developers . Discogs assigns a consumer_key and consumer_secret for the application. This is a one-time action required on behalf of the developer and their application. Each application is assigned a unique value.

  2. Request a token : The application sends the consumer_key and consumer_secret to the request_token endpoint (http://api.discogs.com/oauth/request_token). Discogs returns a request_token and secret

  3. Request user access : Request the user to grant access to your application. This is done by directing the user to a URL. The URL is generated by your application, it simply appends the request_token and secret returned in step 2 to http://www.discogs.com/oauth/authorize. If the user accepts this request, discogs will return a verification code. Store this verification code for the next request (step 4).

  4. Request token verification : The application sends the request_token and request token secret along withe the verification code to the Discogs api. If the API validates your request, you're returned an access_token and an access token secret. You must store or persist this access_token for the user.

  5. Fetching data via your access_token: You're now able to fetch data using the OAuth process. For all authenticated requests, you pass the access_token and access_token secret.

More Repositories

1

jellyfin-plugin-lastfm

LastFM plugin for the Jellyfin media system. Fork of the Emby Last.FM plug-in
C#
153
star
2

plex-lastfm-scrobbler

Scrobble played audio items Last.FM from the Plex Media Server application.
Python
92
star
3

discogstagger

Console based audio-file metadata tagger that uses the Discogs.com API v2 (JSON based). Relies on the Mutagen and discogs-client libraries. Currently supports FLAC and MP3 file types.
Python
69
star
4

Serato-lib

Provides a python wrapper as well as written documentation describing the Rane Serato Scratch crate, and library binary file-formats.
Python
34
star
5

discogs-cli

View and search for artists, labels and releases in the Discogs.com library, from the command line.
Python
32
star
6

musicdiscovery-assist

Google Home assistant for music recommendations, built with Python & Flask. Using Google Home and API.ai
Python
16
star
7

discogs-banner

Creates an image collage from the album thumbnails in your Discogs collection.
Python
14
star
8

py64

A Commodore 64 (6510) emulator written in python. C64 emulator in Python.
Python
8
star
9

azuretexttospeech

A Go library for Azure's Cognitive Services text-to-speech API.
Go
7
star
10

songexplorer

Song Explorer is an Actions on Google project written in Go
Go
6
star
11

azuracast-widgets

Repo of JS/CSS widgets that interact with the AzuraCast API
HTML
6
star
12

harmonic-shuffle

Utilizes the circle of fifths to recommend like sounding songs. A Python library to generate playlists based on the songs root key.
Python
3
star
13

go-discogs

A Go wrapper for the Discogs API.
Go
2
star
14

bbs.jesseward.com

Repo for customization of the x84 script for bbs.jesseward.com
Python
1
star
15

dotfiles-bootstrap

CentOs and Ubuntu system configuration bootstrapping (vim, tmux, bash, mutt, etc)
Lua
1
star
16

zoofuse

A FUSE filesystem backed by a Zookeeper directory tree.
Go
1
star