From b6b23ae585511749f4db9c392ec22b6cc7a4cb1e Mon Sep 17 00:00:00 2001 From: kokarare1212 Date: Fri, 26 Feb 2021 06:59:13 +0900 Subject: [PATCH] Add README.md Usage --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f9832b..422d5a8 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,18 @@ Snapshot Version pip install git+https://github.com/kokarare1212/librespot-python ``` ## Usage -Coming soon +Get Spotify's OAuth token +```python +from librespot.core import Session + + +session = Session.Builder() \ + .user_pass("", "") \ + .create() + +aceess_token = session.tokens().get("playlist-read") +``` +Please read [this document](https://librespot-python.rtfd.io) for detailed specifications. ## Roadmap Coming soon ## License