Files
middle-server/plugin/NavidromePlaylistSync/api/token.py
2023-02-04 00:14:50 +08:00

7 lines
233 B
Python

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')