Add README.md Usage
This commit is contained in:
13
README.md
13
README.md
@@ -20,7 +20,18 @@ Snapshot Version
|
|||||||
pip install git+https://github.com/kokarare1212/librespot-python
|
pip install git+https://github.com/kokarare1212/librespot-python
|
||||||
```
|
```
|
||||||
## Usage
|
## Usage
|
||||||
Coming soon
|
Get Spotify's OAuth token
|
||||||
|
```python
|
||||||
|
from librespot.core import Session
|
||||||
|
|
||||||
|
|
||||||
|
session = Session.Builder() \
|
||||||
|
.user_pass("<Username>", "<Password>") \
|
||||||
|
.create()
|
||||||
|
|
||||||
|
aceess_token = session.tokens().get("playlist-read")
|
||||||
|
```
|
||||||
|
Please read [this document](https://librespot-python.rtfd.io) for detailed specifications.
|
||||||
## Roadmap
|
## Roadmap
|
||||||
Coming soon
|
Coming soon
|
||||||
## License
|
## License
|
||||||
|
|||||||
Reference in New Issue
Block a user