A small CLI to quickly obtain an API token for Deezer API.
Project description
Deezer OAuth CLI
Source Code: https://github.com/browniebroke/deezer-oauth-cli
A small CLI to quickly obtain an API token for the Deezer API.
Obtaining API token to develop API applications can be complicated and sometimes feel like a chicken and egg situation: it's hard to play with the API without a token, but it can be difficult to get a token without an application to do the OAuth flow.
Given the app ID and secret, this tool lets you quickly get an API token.
Installation
Install this via pip (or your favourite package manager):
pip install deezer-oauth-cli
Usage
Before starting to use this tool, you first need to declare your Deezer app in their developer portal. Create a new app with the following Redirect URL: http://localhost:8080/oauth/return
.
Once created, Deezer will generate an application ID and secret key for you, that's the 2 parameters that you need to run this tool:
$ deezer-oauth APP_ID APP_SECRET
This will:
- Spin up a webserver in the background running at
http://localhost:8080
. - Open your browser to grant authorisation access to your Deezer account.
- Redirect to a page showing the API token & expiry.
- Write the token to a
.env
file.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Bruno Alla 💻 🤔 📖 |
Pierre 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deezer_oauth_cli-1.4.0.tar.gz
.
File metadata
- Download URL: deezer_oauth_cli-1.4.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af75391508e25822bb30f5a8816fcb5dc05e81dcba45681bac27cf17e48b63a7 |
|
MD5 | 8799e8cf1dadd33f7ded3a5e81dd8c87 |
|
BLAKE2b-256 | bb9ac26301e7065626c5de669028d15821a4e56b250a60495eb17dc9a1aee9b7 |
Provenance
The following attestation bundles were made for deezer_oauth_cli-1.4.0.tar.gz
:
Publisher:
ci.yml
on browniebroke/deezer-oauth-cli
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
deezer_oauth_cli-1.4.0.tar.gz
- Subject digest:
af75391508e25822bb30f5a8816fcb5dc05e81dcba45681bac27cf17e48b63a7
- Sigstore transparency entry: 145671074
- Sigstore integration time:
- Predicate type:
File details
Details for the file deezer_oauth_cli-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: deezer_oauth_cli-1.4.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122cb57a98373d60400bc50928c6798ab0f1a637e9f0ea7077b2b05fef6c88e6 |
|
MD5 | 6e562ab43a969789d8047dab7525980a |
|
BLAKE2b-256 | 79e7bd9d51766134c4b91f0d56bbbc512799bac64827414661539bf9f4367b59 |
Provenance
The following attestation bundles were made for deezer_oauth_cli-1.4.0-py3-none-any.whl
:
Publisher:
ci.yml
on browniebroke/deezer-oauth-cli
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
deezer_oauth_cli-1.4.0-py3-none-any.whl
- Subject digest:
122cb57a98373d60400bc50928c6798ab0f1a637e9f0ea7077b2b05fef6c88e6
- Sigstore transparency entry: 145671075
- Sigstore integration time:
- Predicate type: