Files
middle-server/plugin/NavidromePlaylistSync/api/token.py
mol 4d00138b32
All checks were successful
continuous-integration/drone/push Build is passing
fix: login
2023-11-15 17:40:10 +08:00

7 lines
246 B
Python

import requests
def getToken():
body = { 'username': 'fan@yunying.com', 'password': 'm%Bn$w5jgiNsNC' }
res = requests.post('http://192.168.124.12:4533/music/auth/login', json = body)
resJson = res.json()
return resJson.get('token')