first commit
This commit is contained in:
7
plugin/NavidromePlaylistSync/api/token.py
Normal file
7
plugin/NavidromePlaylistSync/api/token.py
Normal file
@ -0,0 +1,7 @@
|
||||
import requests
|
||||
|
||||
def getToken():
|
||||
body = { 'username': 'mol', 'password': 'c!UxnePTkwBMb7' }
|
||||
res = requests.post('https://music.hiiragi.club:8081/auth/login', json = body)
|
||||
resJson = res.json()
|
||||
return resJson.get('token')
|
Reference in New Issue
Block a user