update docs
This commit is contained in:
parent
012a0fc85d
commit
461783f719
10 changed files with 69 additions and 43 deletions
15
docs/source/setup/oauth.rst
Normal file
15
docs/source/setup/oauth.rst
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
OAuth authentication
|
||||
====================
|
||||
|
||||
After you have installed ``ytmusicapi``, simply run
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
ytmusicapi oauth
|
||||
|
||||
and follow the instructions. This will create a file ``oauth.json`` in the current directory.
|
||||
|
||||
You can pass this file to :py:class:`YTMusic` as explained in :doc:`../usage`.
|
||||
|
||||
This OAuth flow uses the
|
||||
`Google API flow for TV devices <https://developers.google.com/youtube/v3/guides/auth/devices>`_.
|
||||
Loading…
Reference in a new issue