Files
middle-server/plugin/NavidromePlaylistSync/api/token.py
mol 15885c5676
All checks were successful
continuous-integration/drone/push Build is passing
test: auto
2023-08-09 13:47:55 +08:00

7 lines
234 B
Python

import requests
def getToken():
body = { 'username': 'mol', 'password': 'c!UxnePTkwBMb7' }
res = requests.post('http://192.168.124.12:4533/music/auth/login', json = body)
resJson = res.json()
return resJson.get('token')