7 lines
234 B
Python
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') |